Github user JamesRTaylor commented on a diff in the pull request:

    https://github.com/apache/phoenix/pull/8#discussion_r16699479
  
    --- Diff: 
phoenix-core/src/main/java/org/apache/phoenix/coprocessor/MetaDataEndpointImpl.java
 ---
    @@ -1594,4 +1775,46 @@ public boolean filterRowKey(byte[] buffer, int 
offset, int length) {
                 return cmp != 0;
             }
         }
    +    /**
    +     * A thread (Chore) that keeps reading the updated stats and 
invalidates the Meta cache incase there is 
    +     * a change in the stats
    +     */
    +    private static class StatisticsUpdator extends Chore {
    --- End diff --
    
    See above caveat for aging out the PTable from the cache. Also, the manual 
call to ANALYZE will invalidate the table after the stats have been updated, so 
the next select would get the new stats.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to