Details
-
New Feature
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
-
None
Description
We are seeing more and more use cases where it would be very helpful to declare a TTL for data at the View level instead of the table level. We have several use cases where a shared Phoenix table is partitioned by views and each view has some shared columns with the base table and it's own unique columns. In these cases it's not possible to declare a TTL for data at the table level as each view may warrant a different TTL.
As a result, enforcement of a TTL for data relies on custom jobs that query the data that has expired and then deletes them via SQL. This has 2 major disadvantages a) developers have to write a custom job and b) we can potentially create a lot of delete markers in HBase.
From an end-user perspective it would really simplify the development experience if users could instead simply declare a TTL on the view and let Phoenix/HBase take care of deletion at compaction time.
Attachments
Issue Links
- is duplicated by
-
PHOENIX-5466 Add support for TTL on views
- Resolved