Learn when to use materialized views instead of secondary indexes in Cassandra.
- [Instructor] Now let's discuss another feature…of Cassandra, materialized views.…Now, you could manage multiple tables yourself…when you need to denormalize.…Each time you add a row to one table,…you would add it to the others.…You could also implement operations…to keep the data synchronized.…Fortunately, there's an easier way.…Materialized views.…A materialized view is a table that is managed by Cassandra.…Cassandra will keep data in-sync between tables…and materialized views based on those tables.…
Let's start with this simple device table…that uses only id as a primary key.…We can now create a materialized view on this table…that is ordered by serial number and id.…This create materialized view statement…creates a new table with a serial number,…device name, and manufacturer columns.…Notice the select statement checks that the values…we will use and the primary key are not null.…This is important.…It prevents adding rows to the table that have a null value…for a serial number or id,…which would not be allowed in a primary key.…
- 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 Beginner
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?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
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.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.