/[Apache-SVN]
ViewVC logotype

Revision 1095477


Jump to revision: Previous Next
Author: fdmanana
Date: Wed Apr 20 18:29:33 2011 UTC (13 years ago)
Changed paths: 15
Log Message:
Track used space for database and view index files

The database and view group info URIs now expose a new field, named "data_size",
which corresponds to the number of bytes used by the current data snapshot.
Users can now use this value, compare it to the "disk_size" value (total file size)
and decide whether or not to trigger a compaction based on this comparison.
This new value is an approximation and therefore not 100% accurate (but close enough).

Closes COUCHDB-1132.

Special thanks to Adam Kocoloski and Robert Dionne for they're good work on this
feature as well.



Changed paths

Path Details
Directorycouchdb/trunk/share/www/script/test/compact.js modified , text changed
Directorycouchdb/trunk/share/www/script/test/view_compaction.js modified , text changed
Directorycouchdb/trunk/src/couchdb/couch_btree.erl modified , text changed
Directorycouchdb/trunk/src/couchdb/couch_db.erl modified , text changed
Directorycouchdb/trunk/src/couchdb/couch_db.hrl modified , text changed
Directorycouchdb/trunk/src/couchdb/couch_db_updater.erl modified , text changed
Directorycouchdb/trunk/src/couchdb/couch_doc.erl modified , text changed
Directorycouchdb/trunk/src/couchdb/couch_file.erl modified , text changed
Directorycouchdb/trunk/src/couchdb/couch_key_tree.erl modified , text changed
Directorycouchdb/trunk/src/couchdb/couch_stream.erl modified , text changed
Directorycouchdb/trunk/src/couchdb/couch_view_compactor.erl modified , text changed
Directorycouchdb/trunk/src/couchdb/couch_view_group.erl modified , text changed
Directorycouchdb/trunk/test/etap/010-file-basics.t modified , text changed
Directorycouchdb/trunk/test/etap/011-file-headers.t modified , text changed
Directorycouchdb/trunk/test/etap/020-btree-basics.t modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26