You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "James Taylor (JIRA)" <ji...@apache.org> on 2015/12/12 21:34:46 UTC

[jira] [Created] (PHOENIX-2520) Create DDL property for metadata update frequency

James Taylor created PHOENIX-2520:
-------------------------------------

             Summary: Create DDL property for metadata update frequency
                 Key: PHOENIX-2520
                 URL: https://issues.apache.org/jira/browse/PHOENIX-2520
             Project: Phoenix
          Issue Type: Bug
            Reporter: James Taylor


On the client-side, Phoenix pings the server when a query is compiled to confirm that the client has the most up-to-date metadata for the table being queried. For some tables that are known to not change, this RPC is wasteful. 

We can allow a property such as {{UPDATE_METADATA_CACHE_FREQUENCY_MS}} to be specified a time to wait before checking with the server to see if the metadata has changed. This could be specified in the CREATE TABLE call and stored in the SYSTEM.CATALOG table header row. By default the value could be 0 which would keep the current behavior. Tables that never change could use Long.MAX_VALUE. Potentially we could allow 'ALWAYS' and 'NEVER' values for convenience.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)