Also, depends on type of var a and var b. If they are text, the byte size
will be different than an int, or watch out for counters, as that will mess
everything up.

On Tue, Dec 31, 2019 at 1:34 AM Dipan Shah <dipan....@hotmail.com> wrote:

> Hello lampahome,
>
> Data will be compressed but you will also have to account for the
> replication factor that you will be using.
>
> Thanks,
>
> Dipan Shah
>
> ------------------------------
> *From:* lampahome <pahome.c...@mirlab.org>
> *Sent:* Tuesday, December 31, 2019 8:06 AM
> *To:* user@cassandra.apache.org <user@cassandra.apache.org>
> *Subject:* How bottom of cassandra save data efficiently?
>
> If I use var a as primary key and var b as second key, and a and b are 16
> bytes and 8 bytes.
>
> And other data are 32 bytes.
>
> In one row, I have a+b+data = 16+8+32 = 56 bytes.
>
> If I have 100,000 rows to store in cassandra, will it occupy space
> 56x100000 bytes in my disk? Or data will be compressed?
>
> thx
>


-- 
Steve Lacerda | Technical Support Engineer
office +1.408.933.3102 | mobile +1. 669.377.9742
steve.lace...@datastax.com | datastax.com

<https://twitter.com/datastax> <https://www.linkedin.com/company/datastax/>
<https://www.facebook.com/datastax> <http://feeds.feedburner.com/datastax>
<https://github.com/datastax/>

<http://goog_1784100713>
<http://datastax.com>

Reply via email to