I'm new in NoSQL and more in NeDB so maybe this is a noob question.
From the docs (https://github.com/louischatriot/nedb#creatingloading-a-database):
One datastore is the equivalent of a MongoDB collection
Suppose I have 3 types of documents: user (documents saving user info), order (documents saving orders, I have a userId reference here) and log (documents saving errors etc)
Should I create a different datastore for every type? or is better to save everything inside a single datastore with a "type" fieldname?
I've read the collections in MongoDB are the equivalent to tables in RDBMS, so I guess I should use 3 DataStores in NeDB but not sure what is the best approach.
Aucun commentaire:
Enregistrer un commentaire