小编Pat*_*ick的帖子

如何处理 CouchDB 中的“参考表”?

处理“参考表”(包含静态数据的表,例如包含各种食物成分的列表)的最佳方法是什么?

  1. 多份文件,每种成分一份
  2. 每个参考文献一份

    { "_id" = "ingredients", "ingredient": [{ "name":"Apple", ... }] }

  3. 一份包含所有参考文献的文档

    { "_id" = "references", "ingredients": [{"id": "apple", "name": "Apple", ...}], "spices": [{"id": "cinnamon" , "name": "Cinnamon", ...}] }

nosql database-design best-practices couchdb

6
推荐指数
1
解决办法
1964
查看次数

标签 统计

best-practices ×1

couchdb ×1

database-design ×1

nosql ×1