Hi Michael,
On 04/18/2015 03:59 AM, Michael Salmon wrote:
Hi folks,
Was wondering if I can edit a view without deleting/readding the entire
design document? Either through REST API or Python ideally but open to
other interfaces. Right now when I change my indexes I have a script
that reloads the design document but then it takes a long time to
rebuild, taking my app server offline effectively while the indexes are
rebuilt.
what you could to is creating a separate design document with a
different name, but containing the updated views. Then trigger and
update (e.g. with a `stale=false` request) update. Once done, you can
upload the same definitions with the original name. This will make you
app work without any downtime.
This works because the view engine creates a hash of the contents of the
design documen, but doesn't include its name.
Cheers,
Volker
--
You received this message because you are subscribed to the Google Groups
"Couchbase" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.