Getting started with document DBs, I have a question about a design decision. I'll be inserting data that contains financial transactions for many days. Not sure if I should make each transaction a doc, or make one doc for all of the data, which would cover many days.
The primary use of the application is to analyze the data in many ways, including a particular day, and day ranges.
What considerations are there in making this decision?
It seems that if you are looking to report and analyse data based on the individual transactions (ie cut by product_id, value, buyer, date and so forth) then ideally that will be the document type, allowing indexing as required. If you make a single doc type that is just a list of transactions, I think mongo will struggle to help you much with your indexing.