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

Tables with UPDATE_CACHE_FREQUENCY set to 0 should not be inserted into the client side metadata cache

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • 5.3.0
    • None
    • None

    Description

      CQSI maintains a client-side metadata cache for tables. UPDATE_CACHE_FREQUENCY is a property which can be set on tables and used to decide when to update a table's metadata in the client-side cache. If the UPDATE_CACHE_FREQUENCY is set to 0, a tables's metadata should always be retrieved by getting the latest metadata from the server. 

      Currently, tables with UPDATE_CACHE_FREQUENCY set to 0 are retrieved from the server each time they are accessed for a query or mutation. After every retrieval from the server, the old table ref in the cache is removed and the new one is inserted unnecessarily. 

       MetaDataCachingIT#testCacheShouldBeUsedOnlyForConfiguredTables() can be used to confirm that the cache is used only for tables with non zero update cache frequency. This test is currently ignored. 

      Attachments

        Activity

          People

            Unassigned Unassigned
            palashc Palash Chauhan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: