Re: data types storage saving

2018-03-10 Thread onmstester onmstester
Anyway, I cant get to a approximate method to calculate storage per row for Cassandra records. For example right now my table schema is as follow: c1 tinyint, c2 smallint, c3 bigint, c4 int, c5 int, c6 boolean primary key ((c1,c2,c3),c4,c5) According to cql data types document this should

Re: data types storage saving

2018-03-10 Thread Javier Pareja
You can use variable-length zig-zag coding to encode an interview if using a blob. It is used in able and protocol buffers. Some examples: valuehex 0 00 -1 01 1 02 -2 03 2 04 ... -64 7f 64 80 01 ... On Sat, 10 Mar 2018, 07:52 onmstester onmstester, wrote: > I've find out

Re: data types storage saving

2018-03-09 Thread onmstester onmstester
I've find out that blobs has no gain in storage saving! I had some 16 digit number which been saved as bigint previously but by saving this as blob, the storage usage per record is still the same Sent using Zoho Mail On Tue, 06 Mar 2018 19:18:31 +0330 Carl Mueller

Re: data types storage saving

2018-03-06 Thread Carl Mueller
If you're willing to do the data type conversion in insert and retrieval, the you could use blobs as a sort of "adaptive length int" AFAIK On Tue, Mar 6, 2018 at 6:02 AM, onmstester onmstester wrote: > I'm using int data type for one of my columns but for 99.99...% its data

data types storage saving

2018-03-06 Thread onmstester onmstester
I'm using int data type for one of my columns but for 99.99...% its data never would be 65K, Should i change it to smallint (It would save some Gigabytes disks in a few months) or Cassandra Compression would take care of it in storage? What about blob data type ? Isn't better to use it in