On Thu, Sep 11, 2014 at 10:14 AM, Daniel Gonzalez <[email protected]> wrote:
> 1. Can I simply delete the design directories? (rm -rf .*_design)
> 2. Will this affect the documents themselves? (I guess not, this is just
> view data, not document data)
> 3. Can I do this in a running couchdb instance?
> 4. Will this really free-up disk space, or does couchdb keep view file
> handles open, so that a restart is needed?

You can delete these files, but it's not recommended since CouchDB
process may still hold file descriptors opened on these files. Better
delete design document in CouchDB and cleanup outdated views[1].

With deletion .*_design you remove view indexes. If design document
still exists in database and CouchDB doesn't keeps fd on any of these
files, it will rebuild index from scratch on next request to a view.

If you'd done it having CouchDB in run, you need to restart it to let
it release file descriptors. Or you can find fd in
/proc/<couchdbpid>/fd and close them via gdb.

[1]: 
http://docs.couchdb.org/en/latest/api/database/compact.html#post--db-_view_cleanup

--
,,,^..^,,,

Reply via email to