run automatic compaction on db views
View Expansion:
Couch expands the view data to quickly be able to return it when the view is queried. This obviously does not happen on backups. I think there hardly are views in the user databases. But there also might be other couch mechanisms trading quick data access for large disk usage. We should look into those. Maybe we can turn some of them off if they do not make any sense for our very specific way of using couch.
from https://github.com/cloudant/bigcouch/issues/43:
"@bdionne Is view compaction possible on a per shard basis? I keep on getting {"error":"not_found","reason":"no_db_file"}
yes it is. It has to be done on the back end port like the dbs can be compacted, and you have to know the names and where they are. So if a db is in shards/000xxx-800xxx/dbname.3456433.couch it's views will be in .shards/000xxx-800xxx/dbname.3456433_design"
(from redmine: created on 2014-01-28, closed on 2016-11-08, relates #4795, duplicates #6741 (closed))