Understand the internal data structures of Cassandra and their implications for read and write performance.
[Instructor] Now let's talk about deleting data.…As we are modeling data, we have to consider…how our data will change, both in terms of new data…being added and existing data being deleted.…When data is deleted in relational databases,…the space it had taken up becomes available…for storing other data.…Cassandra, once again, does things differently.…One of the challenges with deleting data in Cassandra…is that SSTables are immutable.…They are not changed once they're written.…When data is in a memtable, it is mutable…and data can be literally deleted from the memtable.…
So instead of deleting data, we perform a special kind…of write operation that creates a marker…indicating the data has been deleted.…This data structure is called a tombstone.…When Cassandra fetches data for rows,…it fetches tombstones as well.…Since tombstones are write operations,…it is possible that a write operation fails.…For example, a node can fail during a write operation…and the tombstone is not written to the SSTable.…If this happens, we could have a ghost or zombie data…
- Cassandra architecture
- Keyspaces, tables, and columns
- Installing Java and Cassandra
- CQL data types
- Designing Cassandra tables
- Tuning tables to optimize queries
- When to use secondary indexes and materialized views
- Physical data modeling and distributing data
- Cassandra architecture and its impact on data modeling
Skill Level Intermediate
1. Cassandra Architecture
2. Cassandra Query Language Data Types
3. Designing Cassandra Tables
4. Physical Data Modeling and Distributing Data
Replication in Cassandra2m 1s
5. Cassandra Architecture and Its Impact on Data Modeling
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.