Reputation: 19279
I know the database_dir
option controls where databases are by default. But is it possible to have many databases in different folders (or even on different disks)?
Upvotes: 1
Views: 269
Reputation: 4679
You may use slash /
symbol in database name and CouchDB will create subdirectory for such database. E.g. database with name foo/bar/baz
will have next structure on file system:
/var/lib/couchdb/
+ -- foo/
+ -- bar/
+ baz.couch
You may preallocate such structure and setup symlinks before CouchDB will use it - CouchDB handles such case with easy. The only requirement is that destination location should be readable and writable for CouchDB.
Upvotes: 3