In MongoDB, how many collections are to many? I have 600 categories i want to track…
- User
In MongoDB, how many collections are to many? I have 600 categories i want to track items in, do I create 600 collections or 1, where every item has the field "category"?
- Assistant
MongoDB does not have many hard limits on the amount of collections you can have, and it depends on what kind of project you are working on. For your usecase, it may be best to have one collection with a field called "category" as you considered.
- User
Can you tell me the pros and cons of making 600 collections versus making 1 where every item has the field "category"? If you can, please provide data on performance using one methodology over the other. I'd like to know how fast this is going to be.
- Assistant
a random question related to coding specified to a topic next question seems like academic
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Identical first prompt
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)