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

SYSTEM.SEQUENCE should have CACHE_DATA_ON_WRITE set to true

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 5.2.0, 5.1.3
    • None
    • None
    • Phoenix now sets the CACHE_DATA_ON_WRITE property on the SYSTEM.SEQUENCE table to improve performance.

    Description

      High volume use cases of Phoenix sequences need to write to the same row of SYSTEM.SEQUENCE very frequently, but each time we write, the block cache that row is in is invalidated and has to be loaded again.

      rushabh.shah was looking at a case in our environment where a sequence was being used heavily and found lots of time spent reading the HFiles for the same Get of the sequence row within the SequenceRegionObserver increment coproc.

      apurtell pointed out offline that HColumnDescriptor has a property, CACHE_DATA_ON_WRITE that keeps caches updated when a value is flushed. This should help improve contention on sequence increments.

      Attachments

        Issue Links

          Activity

            People

              gourab.taparia Gourab Taparia
              gjacoby Geoffrey Jacoby
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: