Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

flutter: I'm implementing group chat using firebase should I create a sub collection for each group or use a where clause to filter content

So let’s say you have 3 or more courses like c#, c++, java, and Python and you would like to implement some chatting feature on each course. Would you create like different collections to store their messages separately in cloud firestore then use where clause on let’s say field ==’python’?
If subcollection could it be created automatically? (on first message sent maybe)

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

For example you have 10 courses with 100 messages each the data it would send to each call is 1000 entries and if you have a separate collection then you get only 100 entries. It is always better to reduce the amount of data passed

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading