couchdb-futon

CouchDB Views and Design Documents

旧时模样 提交于 2019-12-01 05:22:16
问题 For CouchDB you can create multiple views and/or multiple design documents. Is it better to group views in the same design document or keep each view to its own design document? 回答1: Internally, views within each design document are managed together in a "view group". Each view group spawns a separate view server when accessed - i.e. if there are 8 view groups, you will have 8 JavaScript processes. This certainly has design and performance implications. From the CouchDB documentation, View