incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Newson <robert.new...@gmail.com>
Subject Re: Best way to store 2^32 IPs in CouchDB
Date Mon, 01 Feb 2010 16:56:12 GMT
compaction should reduce disk usage even without updates or deletes,
but that is probably not true for 0.8. odd that you get the exact same
byte count after compaction...

On Mon, Feb 1, 2010 at 4:52 PM, Santi Saez <santisaez@woop.es> wrote:
> El 01/02/10 17:31, Robert Newson escribió:
>
>> Try database compaction?
>
> I have tried database compaction in another testing server (Debian Lenny
> box) using CouchDB 0.8.0-2, and after database compaction disk size is the
> same:
>
> # curl http://localhost:5984/test
> {"db_name":"test","doc_count":15999,"doc_del_count":0,"update_seq":15999,"compact_running":false,"disk_size":60330312}
>
> # curl -X POST http://localhost:5984/test/_compact
> {"ok":true}
>
> # curl http://localhost:5984/test
> {"db_name":"test","doc_count":15999,"doc_del_count":0,"update_seq":15999,"compact_running":false,"disk_size":60330312}
>
> Acording to the documentation [1]: "Compaction rewrites the database file,
> removing outdated document revisions and deleted documents".
>
> So, it's normal because in my test I have not delete/upadate any document,
> only inserts.
>
> Thanks!
>
> [1] http://wiki.apache.org/couchdb/Compaction
>
> --
> Santi Saez
> http://woop.es
>

Mime
View raw message