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