benoitc / erica

tool to manage couchapps
Apache License 2.0
269 stars 30 forks source link

only push if a change has occurred in a design doc? #75

Closed sritchie closed 10 years ago

sritchie commented 10 years ago

Is there a way to configure erica to only push a design doc if something's changed? Otherwise, I'm worried that my views will get rebuilt every time, even if no code changes occur.

sritchie commented 10 years ago

Or perhaps I might be misunderstanding whether or not the views rebuild if attachments, etc change, but not views.

ryanramage commented 10 years ago

CouchDB is smart enough with design docs to only rebuild a view if the the views section changes. It keeps a hash of the views property and will only rebuild views if this changes.

sritchie commented 10 years ago

Awesome, thanks for this (and sorry to waste an issue for such a basic question). The paranoia has passed.