I'm testing an application where the size of the collections is bound to grow in the future and 64k is a limit that may be reached in some cases.
This question is about the collection size limit as there seems to be a contradiction in the official documentation.
As per this document:
If you insert more than 64K items into a collection, only 64K of them will be queryable, resulting in data loss.
But if you click through to the CQL Limits link on that very page you see this:
Collection (List): collection size: 2B (2^31); values size: 65535 (2^16-1) (Cassandra 2.1 and later, using native protocol v3)
Collection (Set): collection size: 2B (2^31); values size: 65535 (2^16-1) (Cassandra 2.1 and later, using native protocol v3)
Collection (Map): collection size: 2B (2^31); number of keys: 65535 (2^16-1); values size: 65535 (2^16-1) (Cassandra 2.1 and later, using native protocol v3)
So which one is it? 64k items per collection, or 2 billion items per collection? Or are 2 billion writeable but not readable beyond 64k?
Thanks in advance.