[ 
https://issues.apache.org/jira/browse/COUCHDB-753?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12873017#action_12873017
 ] 

Filipe Manana commented on COUCHDB-753:
---------------------------------------

I like this last proposition from Jan.

We could define in the .ini config a group of directories where DBs and 
compaction woud be stored/done.

When a DB open request comes in, CouchDB would loop over that list of 
directories and stop as soon as it finds one having the DB file.
If none has it, it would loop through all the directories again but looking for 
one containing a DB compaction file, and rename it to the main DB file (like 
it's currently done). 

With 2 or 3 directories, I think this wouldn't  slow down (significantly) open 
DB requests.

When creating a DB (or compacting an existing one), we could randomly choose 
which directory to use.

If everyone sees this as a plus (I see it like a plus), and doesn't find a flaw 
in the idea, I can implement it and give a patch soon.



> Add config option for view compact dir
> --------------------------------------
>
>                 Key: COUCHDB-753
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-753
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: Database Core
>            Reporter: Till Klampaeckel
>
> CouchDB creates a "foo.view.compact" file in the view directory 
> ("view_index_dir") when you run compact against a view.
> I'd really like to be able to specify another directory where this ".compact" 
> file is created and worked on. This is especially helpful when it's difficult 
> to run compaction because you run out of disk space on the same device.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to