incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Santi Saez <santis...@woop.es>
Subject Re: Best way to store 2^32 IPs in CouchDB
Date Mon, 01 Feb 2010 16:52:52 GMT
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