NoSQL: Cassandra Collection Data Types – List, Set, Map

In this post, I am sharing small demonstration of Cassandra Collection data types.

Basically, CQL provides three different types of collection data types, SET, LIST, MAP.
Using collection data types, you can store multiple values in a single column.

You can store multiple values in a single column, but try to keep your collection small otherwise it creates performance overhead.

Small demonstration of Collection data types:

Create a sample table with collectio data type
(SET, LIST, MAP):

Insert a sample record:

Update data on Collection type:

Filter on Collection type:

Anvesh Patel

Leave a Reply

Be the First to Comment!

Notify of
avatar
wpDiscuz