QnaList > Groups > Cassandra-User > Jan 2014
faq

Any Limits On Number Of Items In A Collection Column Type

Hi,
I have a column  daycount list. The column is storing a count.
Every few secs a new count is appended. The total count for the day is the
sum of all items in the list.
My application logs indicate I wrote about 110000 items to the column for a
particular  row. Assume row key is day_timestamp.
But when I do a read on the column I get back a list with only 43000 items.
Checked with both java driver and CQL.
There are no errors or exceptions anywhere.
There is this statement in the WIKI "Collection values may not be larger
than 64K". I assume this refers to 1 item in a collection.
Has anyone else seen an issue like this ?
regards
MJ
http://khangaonkar.blogspot.com/

asked Jan 22 2014 at 18:17

Manoj Khangaonkar 's gravatar image



4 Replies for : Any Limits On Number Of Items In A Collection Column Type
Yes, I�ve experienced this as well. It looks like you�re getting the number
of items inserted mod 64K.

answered Jan 22 2014 at 18:53

Robert Wille 's gravatar image


I didn�t read your question properly. Collections are limited to 64K items,
not 64K bytes per item.

answered Jan 22 2014 at 19:15

Robert Wille 's gravatar image


Thanks. I guess I can work around by maintaining hour_counts (which will
have fewer items) and adding the hour counts to
get day counts.
regards
http://khangaonkar.blogspot.com/

answered Jan 22 2014 at 19:28

Manoj Khangaonkar 's gravatar image


Alternatively you can use clustering columns to store very big collections.
Beware of not making a row too wide though (use bucketing)
Le 23 janv. 2014 04:29, "Manoj Khangaonkar"  a �crit
:

answered Jan 23 2014 at 11:29

DuyHai Doan 's gravatar image


Related discussions

Tagged

Group Cassandra-user

asked Jan 22 2014 at 18:17

active Jan 23 2014 at 11:29

posts:5

users:3

©2013 QnaList.com