How to find the size of a column in Cassandra

2,762 views
Skip to first unread message

Vinay Kumar Chella

unread,
Sep 28, 2012, 1:13:25 PM9/28/12
to hector...@googlegroups.com
I am running into Java heap size issues, so wanted to check what is the size of a column in cassandra. I am reading many columns into Java in memory.

Thanks for the help this

Nate McCall

unread,
Sep 28, 2012, 1:18:11 PM9/28/12
to hector...@googlegroups.com
nodetool cfstats
and look for the three"Compacted Row [min|max|mean]" attributes on
the column family.

If there is a big variance in the above numbers, you should
re-consider your data model.

Also, maybe don't try to read so many columns at once and use pagination.

Vinay Kumar Chella

unread,
Sep 28, 2012, 5:04:17 PM9/28/12
to hector...@googlegroups.com
Thanks Nate. This should give me the row size, but How should I get the column size? Does this gives Column size?

Nate McCall

unread,
Sep 28, 2012, 5:07:43 PM9/28/12
to hector...@googlegroups.com
In a system like Cassandra you don't know what you have until you have
it. The compacted thresholds will give you an idea of whether there
are some rows that are significantly larger than others, but finding
an individual row (and thus it's columns) will be difficult.

What sort of query is causing the heap size issues?

On Fri, Sep 28, 2012 at 4:04 PM, Vinay Kumar Chella
Reply all
Reply to author
Forward
0 new messages