Doubt about document structure

I need to set up a document structure to store information about network equipment.

A network device has information about its type, its manufacturer, cards (slots) and their network interfaces.

My question is with regards to how to store card data and network interfaces. I create a single document and the network cards and interfaces represent as a list within that single document or create separate documents for each: equipment, card and network interface (remembering that if that's the way I should have the name of the equipment "referenced ")

Thank you.

This depends a lot on how you want to query the data. Are most of your queries about network devices or about cards? If the latter maybe it makes more sense to store those in separate documents.

My approach is always try to think about how to most efficiently query your data instead of thinking how to index it and then go from there.

Hope this helps!


This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.