summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorFilipe David Borba Manana <fdmanana@apache.org>2011-05-02 13:28:20 +0000
committerFilipe David Borba Manana <fdmanana@apache.org>2011-05-02 13:28:20 +0000
commite2e8554d4de18c4ad3765fb105491c77997aff39 (patch)
tree006971c29510d531ee9b0d3bb88b7062500f8f3e /etc
parent5ee419e6fb5323d1dfdcd447670b36b5726a9db0 (diff)
downloadcouchdb-e2e8554d4de18c4ad3765fb105491c77997aff39.tar.gz
Add configurable file compression (snappy, deflate or none)
Not only this makes database and view index files smaller it also increases database read/write performance, view index generation (specially for large documents and/or documents with nested JSON structures) and compaction. Closes COUCHDB-1120. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1098558 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'etc')
-rw-r--r--etc/couchdb/default.ini.tpl.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/etc/couchdb/default.ini.tpl.in b/etc/couchdb/default.ini.tpl.in
index 8207d6ebb..dae2ebc8d 100644
--- a/etc/couchdb/default.ini.tpl.in
+++ b/etc/couchdb/default.ini.tpl.in
@@ -11,6 +11,14 @@ os_process_timeout = 5000 ; 5 seconds. for view and external servers.
max_dbs_open = 100
delayed_commits = true ; set this to false to ensure an fsync before 201 Created is returned
uri_file = %localstaterundir%/couch.uri
+; Method used to compress everything that is appended to database and view index files, except
+; for attachments (see the attachments section). Available methods are:
+;
+; none - no compression
+; snappy - use google snappy, a very fast compressor/decompressor
+; deflate_[N] - use zlib's deflate, N is the compression level which ranges from 1 (fastest,
+; lowest compression ratio) to 9 (slowest, highest compression ratio)
+file_compression = snappy
[httpd]
port = 5984