Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-3725

Add support for per VIEW level TTLs in addition to table level TTLs

    XMLWordPrintableJSON

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

          There are no Sub-Tasks for this issue.

          Activity

            People

              jisaac Jacob Isaac
              jfernando_sfdc Jan Fernando
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 12h 20m
                  12h 20m