cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "X. F. Li" <lixf...@gmail.com>
Subject If a cluster column has the same value over many rows, is the value duplicated in memory?
Date Tue, 08 Mar 2016 10:49:24 GMT
Hi,

If a cluster column has the same value over many rows, is the value 
duplicated in memory?

Suppose we have

   create table t (
     c1 int,
     c2 text,
     c3 int,
     primary key(c1,c2,c3)
   );

and we have N rows with the same value for (c1,c2) and different values 
for c3. When the rows are loaded into memory cache, is the value of c2 
duplicated N times in memory? Or cassandra treat (c1,c2,c3) like a 
multi-level map and only have 1 copy for the value?

Thanks.

X. F. Li

Mime
View raw message