Hi everyone, I am creating a chat app. and I would like to know what is the correct way to store my data.
I am currently using Firebase to store messages and this is my logic:
- User get the list of messages
- User ads a message to the list
- User Stores the list in Firebase
4.Cycle repeats
For 2 or 3 users I dont think this is a problem. But I don’t think it is the best way, why whould I have to store all messages again and again? What if my data size is 50,000 records? That will take long to download and store it back will be a pain…
Does anyone have any suggestion?
Thanks!