CouchDB - Is it safe to delete the view files in mrview? -


i working on project using couchdb , partition or storage dedicated couchdb files reached maximum capacity site fails connect couchdb , produces connection errors. know couch storage hungry never expect soon. have tried compacting methods such as:

curl -h "content-type: application/json" -x post http://localhost:5984/dbname/_compact  curl -h "content-type: application/json" -x post http://localhost:5984/dbname/_view_cleanup 

and,

localhost:5984/dbname/_compact/all_view_documents 

the above commands released 2gb of storage. searched files in partition consumes of storage, found out in particular folder /usr/local/var/lib/couchdb/.dbname/mrview found view file 144gb in size in still there when used compact view documents.

note: compacted document file / database file 1.6gb, total partition storage 150gb

i encountered problem too. apparently these files increase when design views modified because indexes recomputed test delete files , functionally testing application re-create of these files smaller assume there no problem in deleting , increase in size should not worry unless change layout views

http://www.staticshin.com/programming/does-updating-a-design-document-in-couchdb-cause-rebuilding-of-views/


Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -