In Kassandra, how do I access historical data?

Cassandra uses a timestamp system to serve the most recent records. How to display a list of all values ​​and timestamps for a specific column?

For example, I run this command for a column family called Users:

set Users[jsmith][first]='John'

When I get the "first" column, I see the following:

get Users[jsmith][first] => (column=first value=John, timestamp=1287604215498000

Then I update the "first" column to Charlie. set Users[jsmith][first]='Charlie'

Now I will see the following

get Users[jsmith][first] => (column=first value=Charlie, timestamp=1299980101189000

My question is: how to get all the values ​​(by time) for this column? I want to see something like get Users[jsmith][first] ==> John (timestamp), Charlie (timestamp).

+3
source share
1 answer

No. Cassandra moves away from the BigTable model: only the latest version is saved.

+7
source

All Articles