Updating CouchDB ‘design documents’ after modifications

By default, updated design documents aren’t uploaded to CouchDB server(s). Recomputing a CouchDB view can take a considerable length of time (days) for large datasets. Therefore, we only really want design documents to be updated on the server when we’re ready to commit the changes.

This can be done by one of two methods.

1) On the command line, set a system property:

2) Programatically: