[jira] [Created] (COUCHDB-1382) Use term_to_binary with minor_version=1 to reduce disk size of data and indexes
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
[jira] [Commented] (COUCHDB-1382) Use term_to_binary with minor_version=1 to reduce disk size of data and indexes
[ https://issues.apache.org/jira/browse/COUCHDB-1382?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13188425#comment-13188425 ] Alexey Loshkarev commented on COUCHDB-1382: --- Also, with my data sample, minor_version=1 reduces database size to ~12% (~800MB vs ~900MB) 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
[jira] [Resolved] (COUCHDB-1382) Use term_to_binary with minor_version=1 to reduce disk size of data and indexes
[ 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
[jira] [Created] (COUCHDB-1383) Futon view editor won't allow you to save original view (reverting) after saving a revision
Futon view editor won't allow you to save original view (reverting) after saving a revision --- Key: COUCHDB-1383 URL: https://issues.apache.org/jira/browse/COUCHDB-1383 Project: CouchDB Issue Type: Bug Components: Futon Affects Versions: 1.1, 1.2 Reporter: Sam Bisbee Priority: Minor Steps to reproduce: 1. Load a view that was already created. 2. Change the view in some way (add space or whatever). 3. Click Save. 4. Revert your change (remove the space or whatever). Expected Result: You should be able to click Save, thereby essentially reverting back to the original view code. Actual Result: You cannot click Save - the button is still disabled. -- 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
[jira] [Updated] (COUCHDB-1383) Futon view editor won't allow you to save original view (reverting) after saving a revision
[ https://issues.apache.org/jira/browse/COUCHDB-1383?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sam Bisbee updated COUCHDB-1383: Attachment: 0001-Fixing-COUCHDB-1383-update-the-in-memory-state-of-th.patch Also available in my github fork (viewSave branch): https://github.com/sbisbee/couchdb/tree/viewSave Futon view editor won't allow you to save original view (reverting) after saving a revision --- Key: COUCHDB-1383 URL: https://issues.apache.org/jira/browse/COUCHDB-1383 Project: CouchDB Issue Type: Bug Components: Futon Affects Versions: 1.1, 1.2 Reporter: Sam Bisbee Priority: Minor Attachments: 0001-Fixing-COUCHDB-1383-update-the-in-memory-state-of-th.patch Steps to reproduce: 1. Load a view that was already created. 2. Change the view in some way (add space or whatever). 3. Click Save. 4. Revert your change (remove the space or whatever). Expected Result: You should be able to click Save, thereby essentially reverting back to the original view code. Actual Result: You cannot click Save - the button is still disabled. -- 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
[jira] [Commented] (COUCHDB-1381) Support Windows 8 Metro Apps
[ https://issues.apache.org/jira/browse/COUCHDB-1381?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13188593#comment-13188593 ] Robert Newson commented on COUCHDB-1381: It seems this environment doesn't support alert(str), which is used in several places in jquery.couch.js. Is there an equivalent function? Support Windows 8 Metro Apps Key: COUCHDB-1381 URL: https://issues.apache.org/jira/browse/COUCHDB-1381 Project: CouchDB Issue Type: Bug Components: HTTP Interface Affects Versions: 1.1.1 Environment: Windows 8 Reporter: Chang Luo Labels: javascript, metro, windows jquery.couch.js doesn't work for Windows 8 Metro apps. Below code works fine on browsers. However when run within a Windows 8 Metro app, it throws an error in line 665 jquery.couch.js: alert undefined. If this is hard to fixed, any alternative javascript library recommendation is welcome. !DOCTYPE html html head titleCouchDB jQuery Examples/title meta http-equiv=Content-Type content=text/html; charset=utf-8 / script src=js/json2.js/script script src=js/sha1.js/script script src=js/jquery.js/script script src=js/jquery.couch.js/script script src=js/jquery.dialog.js/script /head body script console.log('starting'); $.couch.urlPrefix = http://localhost:5984;; $.couch.db(_users).allDocs({ success: function (data) { console.log(); } }); console.log('done'); /script /body /html -- 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
[jira] [Updated] (COUCHDB-1381) Support Windows 8 Metro Apps
[ https://issues.apache.org/jira/browse/COUCHDB-1381?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Robert Newson updated COUCHDB-1381: --- Priority: Major (was: Critical) Fix Version/s: (was: 1.1.2) Issue Type: Bug (was: New Feature) Remaining Estimate: (was: 48h) Original Estimate: (was: 48h) Clearing a few inappropriately set fields. Support Windows 8 Metro Apps Key: COUCHDB-1381 URL: https://issues.apache.org/jira/browse/COUCHDB-1381 Project: CouchDB Issue Type: Bug Components: HTTP Interface Affects Versions: 1.1.1 Environment: Windows 8 Reporter: Chang Luo Labels: javascript, metro, windows jquery.couch.js doesn't work for Windows 8 Metro apps. Below code works fine on browsers. However when run within a Windows 8 Metro app, it throws an error in line 665 jquery.couch.js: alert undefined. If this is hard to fixed, any alternative javascript library recommendation is welcome. !DOCTYPE html html head titleCouchDB jQuery Examples/title meta http-equiv=Content-Type content=text/html; charset=utf-8 / script src=js/json2.js/script script src=js/sha1.js/script script src=js/jquery.js/script script src=js/jquery.couch.js/script script src=js/jquery.dialog.js/script /head body script console.log('starting'); $.couch.urlPrefix = http://localhost:5984;; $.couch.db(_users).allDocs({ success: function (data) { console.log(); } }); console.log('done'); /script /body /html -- 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