Cassandra Features
Time to Live
Can be set when
When defining table
insert or update operation
Example : Insert and Update operations
Example : For Table
Counter
more info : https://university.scylladb.com/courses/data-modeling/lessons/advanced-data-modeling/topic/counters/
It’s a special data type (column) that only allows its value to be incremented, decremented, read or deleted. As a type, counters are a 64-bit signed integer. Updates to counters are atomic, making them perfect for counting and avoiding the issue of possible concurrent updates on the same value.
Counters can only be defined in a dedicated table that includes:
The primary key (can be compound)
The counter column
Loading data to a counter table is different than other tables, it’s done with an UPDATE operation
Last updated