I'm using Cassandra to store historical data. It's a collection of various objects that change it's value in time.
Column Family: Object type
Row: Object Id
Column Name: Timestamp
Column Value: Value at given time
At some time, the data becomes 'old' and instead of deleting it I want to store it somewhere else (like another Column family) or 'tag' in some way not to be retrieved along with the rest of the data.
Which is the fastest way to do this? At the moment I'm using Hector to do this:
1.Read the data (Using SliceQuery)
2.Write the data in antoher column family (Using ColumnFamilyUpdater)
3.Delete old data (Also using ColumnFamilyUpdater)
Not sure if it's the best practice to do this, but i'm quite new to Cassandra...
Thanks.