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

Materialized View Performance in Cassandra 3.x

Blog post from DataStax

Post Details
Company
Date Published
Author
Jonathan Ellis
Word Count
887
Company Posts That Month
1
Language
English
Hacker News Points
-
Post removed?
No
Summary

Materialized views (MV) were introduced in Cassandra 3.0 to simplify common denormalization patterns in data modeling. They provide performance benefits similar to manually denormalized tables but are automatically updated by Cassandra whenever the base table is modified. However, they introduce a read-before-write overhead at write time and require tracking which MV updates have been applied per replica. A benchmarking tool called mvbench was developed to compare the cost of maintaining four denormalizations for a playlist application using manual updates and MVs. The results showed that while MVs were faster on average, their performance started to decline from its initial peak over time due to the sstable-based bloom filter not being able to short circuit the read-old-value part of the MV maintenance logic. Overall, materialized views can provide significant benefits for read queries but may have a negative impact on write performance.

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.