Skip to Content
Mastering Apache Cassandra 3.x - Third Edition
book

Mastering Apache Cassandra 3.x - Third Edition

by Aaron Ploetz, Tejaswi Malepati
October 2018
Beginner to intermediate content levelBeginner to intermediate
348 pages
10h
English
Packt Publishing
Content preview from Mastering Apache Cassandra 3.x - Third Edition

Cache settings

Apache Cassandra has two mechanisms that can be used to cache table data: the key cache, and the row cache. As the name suggests, the key cache simply caches the location of the keys in RAM, providing a boost in efficiency to disk seeks for rows as well (Gilmore 2011). Similarly, enabling row-caching stores the entire row in cache. Hits on the row cache perform significantly better than reads from disk, as reads from RAM happen in a matter of nanoseconds (Dean, Norvig 2012).

Row-caching requires the size to be set in cassandra.yaml as well as the number of rows (per partition) to be set at the table level. Do note that row-caching is disabled by default, as its use is known to interfere with a node's ability to serve requests. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Apache Cassandra - Second Edition

Mastering Apache Cassandra - Second Edition

Nishant Neeraj

Publisher Resources

ISBN: 9781789131499Supplemental Content