Couchdb database-per-user design document management

让人想犯罪 __ 提交于 2020-01-05 04:08:06

问题


I am evaluating Couchdb for a web application where there would be many users. If I use the database-per-user model, presumably the design documents in every database will all be identical. I have not found any mention of 'global' design documents acting upon multiple databases, or of any tools to make it easy to change the design docs across all user databases. How is this handled?


回答1:


You can setup continuous replication between a template database that contains all your design documents. So whenever you change the template database, user's database gets updated.



来源:https://stackoverflow.com/questions/46947210/couchdb-database-per-user-design-document-management

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!