发布于 2014-08-21 16:30:15
- If two documents must be visible to different sets of users, they must be in different DBs (read/write privs are per-DB, not per-doc).
- If two documents must be included in the same view, they must be in the same DB (views are for a single DB only).
- If two types of documents will be numerous and never be included in the same view, they might as well be in different DBs (so that accessing a view over one type won't need to process all of the docs of the other type).
- It's cheap to drop a database, but expensive to delete all of the documents out of a database. Keep this in mind when designing your data expiration plan.
https://stackoverflow.com/questions/24972063
复制相似问题