In order to minimize the number of joins that I have to execute in my application I decided to copy in my database the same field in several tables for example : I have a User, Product and a Wishlist Table.
My Product pages shows the user who created the product, as the wishlists pages which also shows the user who created them.
So I added in my products and wishlists table all the users field needed to show the required informations.
How can I update the users related fields in my Products and Wishlists Table as soon as the user change his information ?
Here is a part of my model :
User Table
- Full Name
- UserName
- Avatar URL
Product Table
- Product Name
- Product Price
- User ID
- User Full Name
- Username
- User Avatar URL
Wishlist Table
- Wishlist Name
- User ID
- User Full Name
- Username
- User Avatar URL
Thanks in advance for your answers !