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 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