Implement favorite option on a server [closed]

-1

I'm trying to implement the user's option to favor an item from a list and I'm in doubt on how best to do this. The scenario is as follows, all users have access to the same list of items that is pulled from the server every time the app opens. The user data will be saved on the server, I want to know how to do this without having to create a copy of the entire list of items for each user.

    
asked by anonymous 05.09.2016 / 05:14

1 answer

1

There is no way to generate a relationship between two entities without generating a new record, in case it is N p / N, there will always be a data to be replicated, so your decision should be focused on whether you want a relationship and deal with the integrity of the data or whether it will make a copy of the data not having to worry about the origin of it.

    
05.09.2016 / 06:07