I'm building a simple blog system for multiple users
, they can access data by userID
, username
and nodeID
(blog).
In RDBMS, normally we will have user
/table
/ownership
tables. In mongoDB, some suggest to put them in a single users
collection. However, as far as i know, it could be very slow if users
want to access specific nodeID
, since mongoDB may go through every document. Indexing will significantly drop the create speed, in my case, that means both createUser()
and createNode()
, right?
Therefore, is there any "Best Practices" we can follow? Thanks.