A document based DB is not like a flat file. They do index for fast retrieval.
It is just that the indexes are added based on what queries are made. You can be explicit about what indexes you want maintaned, but it is often good-enough to just perform a query and have the db figure out how to index to make that query faster.
It's pretty much dynamic-typing vs static-typing for databases (plus the document-entries instead of row-column-entries).
It is just that the indexes are added based on what queries are made. You can be explicit about what indexes you want maintaned, but it is often good-enough to just perform a query and have the db figure out how to index to make that query faster.
It's pretty much dynamic-typing vs static-typing for databases (plus the document-entries instead of row-column-entries).