Reputation: 423
On cassandra, we only need 100 days of data for specific tables. However, we only recently set the TTL value and the data older than that still stays in the system as stale data. We were thinking of different approaches to delete the old data out of the system. One suggestion was to create a Spark job to identify the data older than a specific timeframe and delete them all. Another thought was to create a new table with just 100 days data and delete the old table. But I have various doubts on
I am really new to cassandra and require expert advice on this. Please suggest if there are better ways to handle this.
Upvotes: 1
Views: 211
Reputation: 2283
Cassandra does not have a way to rename a table, you will need to
Upvotes: 1