Home / Companies / DataStax / Blog / Post Details
Content Deep Dive

Collections in Cassandra

Blog post from DataStax

Post Details
Company
Date Published
Author
Robin Schumacher
Word Count
325
Company Posts That Month
13
Language
English
Hacker News Points
-
Post removed?
No
Summary

The text discusses data modeling in Apache Cassandra, focusing on the use of collection data types and user-defined types (UDTs). It explains that using collections can be more efficient when storing small lists of tags associated with videos. The five collection data types in Cassandra are: set, list, map, tuple, and UDT. When defining a collection, users need to provide a data type for its elements. CQL provides convenient syntax for inserting, updating, or deleting items in collections. UDTs offer flexibility by allowing multiple data fields with names and types to be attached to a single column. An example is provided where an address type is created and used across multiple Cassandra tables. The frozen keyword is required when using UDTs inside of collections, forcing Cassandra to treat the address as a single value.

Trends Found in this Post

No tracked trend matches for this post yet.

Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.