Should I store my data in single collection or multiple collection

Hi everyone,
I got a set of data that has the same data model/fields. In my model, there is a specific field called “chat_id”. I was hoping anyone could tell me which was the better approach if it is better to store the data having the same “chat_id” in a separate collection or store all data irrespective of its “chat_id” in a single collection.

Thanks,
Ben

Hey,

how many documents (and what is the size of the document) you will have in this collection?
You are saying a set of data that has the same data model/fields. Is it a one-to-one relationships model with embedded documents?
I think one collection ( irrespective of its “chat_id”) for all documents will be a good solution unless there is a specific reason for using multiple collections.

1 Like