[
https://issues.apache.org/jira/browse/COUCHDB-1382?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Filipe Manana resolved COUCHDB-1382.
------------------------------------
Resolution: Fixed
Fix Version/s: 1.2
This was already done in COUCHDB-1120, which will be included in the 1.2.0
release.
> Use term_to_binary with minor_version=1 to reduce disk size of data and
> indexes
> -------------------------------------------------------------------------------
>
> Key: COUCHDB-1382
> URL: https://issues.apache.org/jira/browse/COUCHDB-1382
> Project: CouchDB
> Issue Type: Improvement
> Components: Database Core
> Affects Versions: 1.1.1
> Environment: doesn't matter
> Reporter: Alexey Loshkarev
> Priority: Trivial
> Fix For: 1.2
>
>
> Now, couchdb store data using term_to_binary/1 (with no options).
> According manual, term_to_binary/2 has option minor_version, which value 1
> changes storage format for floats.
> Default behaviour, float consume 33 bytes of disk space.
> With minor_version=1, float consume only 9 bytes of disk space.
> minor_version=1 is supported since Erlance 11B-4, but minimum couchdb
> supported erlang version is still 13, so no problem to implement this.
> Also, term_to_binary/2 has "compressed" option, it may also reduce disk
> space, but will use more cpu for that.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira