You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Darjus Loktevic <da...@gmail.com> on 2010/10/26 05:38:23 UTC

Replicated db copy takes 2 times more space

Hey Guys,

I've been playing with CouchDB and found something very disturbing for
me. I have a database with 1.5M documents, i decided to make a backup
and created a new database, then replicated from the original. The end
result was that original weights 0.9GB but the replica is 2.5GB! Each
document has only 1 revision and I'm running 0.12a. I've also tried
compaction, but nothing changes.

Is this expected behavior and if so, can someone point me at a
document on why could this be?

Thanks!
DL

Re: Replicated db copy takes 2 times more space

Posted by Adam Kocoloski <ko...@apache.org>.
Replicated DBs do sometimes end up a bit sparser than we would like ... as you noticed, compaction does fix this.  Regards,

Adam

On Oct 26, 2010, at 12:00 AM, Darjus Loktevic wrote:

> Nevermind, it actually shrunk a few minutes later. Sorry.
> 
> On Mon, Oct 25, 2010 at 8:38 PM, Darjus Loktevic <da...@gmail.com> wrote:
>> Hey Guys,
>> 
>> I've been playing with CouchDB and found something very disturbing for
>> me. I have a database with 1.5M documents, i decided to make a backup
>> and created a new database, then replicated from the original. The end
>> result was that original weights 0.9GB but the replica is 2.5GB! Each
>> document has only 1 revision and I'm running 0.12a. I've also tried
>> compaction, but nothing changes.
>> 
>> Is this expected behavior and if so, can someone point me at a
>> document on why could this be?
>> 
>> Thanks!
>> DL
>> 


Re: Replicated db copy takes 2 times more space

Posted by Darjus Loktevic <da...@gmail.com>.
Nevermind, it actually shrunk a few minutes later. Sorry.

On Mon, Oct 25, 2010 at 8:38 PM, Darjus Loktevic <da...@gmail.com> wrote:
> Hey Guys,
>
> I've been playing with CouchDB and found something very disturbing for
> me. I have a database with 1.5M documents, i decided to make a backup
> and created a new database, then replicated from the original. The end
> result was that original weights 0.9GB but the replica is 2.5GB! Each
> document has only 1 revision and I'm running 0.12a. I've also tried
> compaction, but nothing changes.
>
> Is this expected behavior and if so, can someone point me at a
> document on why could this be?
>
> Thanks!
> DL
>