I want to store day bay day trading stock data. These data are composite ( ie Price-Volume ) and needs to be mantained in order. How to organize the mongodb data in order to update the data very frequently and reading indexing by equity name,date ?
Thanks in advance
I want to store day bay day trading stock data. These data are composite
Share
You could use a schema something like this:
stocks
Then add indexes over the fields you’ll be sorting and filtering by, e.g.
The
_idkey field is indexed by default, so updates like this will be very fast: