couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Cottlehuber <d...@muse.net.nz>
Subject Re: Size of couchdb documents
Date Thu, 15 Mar 2012 09:03:29 GMT
Might as well keep this in the other thread you have open, perhaps related.

On 15 March 2012 09:38, Daniel Gonzalez <gonvaled@gonvaled.com> wrote:
> I have the following document in a couchdb database:
>
> {
>   "_id": "000013a7-4df6-403b-952c-ed767b61554a",
>   "_rev": "1-54dc1794443105e9d16ba71531dd2850",
>   "tags": [
>       "auto_import"
>   ],
>   "ZZZZZZZZZZZ": "910111",
>   "UUUUUUUUUUUUU": "OOOOOOOOO",
>   "RECEIVING_OPERATOR": "073",
>   "type": "XXXXXXXXXXXXXXXXXXX",
>   "src_file": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
> }
>
> This JSON file takes exactly 319 bytes if saved in my local
> filesystem. My documents are all like this (give or take a couple of
> bytes, since some of the fields have varying lengths).
>
> In my database I have currently around 6 millions documents, and they
> use 15 GB. That gives around 2.5KBytes/document. That means that the
> documents are taking 8 times more space on CouchDB as they would on
> disk.
>
> Why is that?

Mime
View raw message