couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Davis <paul.joseph.da...@gmail.com>
Subject Re: In regards to naming of design documents
Date Thu, 12 Nov 2009 20:41:33 GMT
>> Remember you don't *have* to have separate design docs per table - you can
>> have multiple views within the same design doc, and the user doc will only
>> be serialized once to the view server to build all those views.
> Part of the design (which I left out in the previous mail) is we will
> be dynamically creating views fairly often, placing them into the
> tables design document. I would like to have a single design document
> with all views for a database, as well as the lookup for the tables.
> However from my understanding when we added/updated views for a design
> doc, it would cause the other views under that design document to also
> re-index. I could see on a large database with 100+ tables, having to
> re-index every view for all tables for a single view update could get
> expensive. I would appreciate you to kindly correct me if I am wrong
> as that would perhaps sway our design decisions.

Chris,

You're spot on here. If you add a view to a design document, all views
in that design document will be invalidated and re-indexed.

HTH,
Paul Davis

Mime
View raw message