I have an app where user can vote on a photo, then move on to the next. I need to know the most efficient strategy to keep track of the photos a user has already voted on, so he will not be presented the same photo twice.
My current strategy is to keep in each user profile an array with all already voted photos ids. I then fetch new photos and make sure their ids don't match any id in the array.
I don't think this is the proper strategy as arrays are supposed to contain a limited number of items.... and in this case a user could have viewed A LOT of images.
I don't think neither that it would be appropriate to create a class with an entry for each vote.
There are several options available in Parse.com documentation about "relations" but i'm really not sure the one to choose to:
1) Keep track photos seen by user 2) Fetch new photos excluding those
If you know the best way to do this, please advise. I'm on iOS swift / but this problem is language agnostic.