Reputation: 6403
Let's assume I want to create an app like Instagram. Every user of my app has his own realm file where he keeps his profile data, pictures, likes of pictures and comments.
What if I want to create a wall where are visible latest pictures of all users of my app? Should I somehow access every single realm file of my users and get a picture or maybe should I create one big shared realm file where I will keep all pictures of all my users?
Upvotes: 1
Views: 116
Reputation: 2923
You should keep them all in one place.
May be it's better to have offline version also (for the user's convenience) but if you want every single user have online access to the database you should't get pictures from the users only everytime you need them. Imagine if someone is offline what then? Or at least some pictures would get downloaded faster than the others due to some people have better internet than the others.
Upvotes: 1