vdegans opened a new pull request, #3023:
URL: https://github.com/apache/drill/pull/3023

   # [DRILL-8529](https://issues.apache.org/jira/browse/DRILL-8529): Caching 
QueryPlan Results
   
   ## Description
   
   Implements a caching mechanism for query plans and transformations, to 
shorten the prepare phase.
   
   ## Documentation
   The cache behavior can be customized via drill-override.conf
   
   ```
   planner {
     query {
       cache {
         max_entries_amount: 100       # Maximum number of cached query plans 
(default: 100)
         plan_cache_ttl_minutes: 300   # Time-to-live for cached query plans in 
minutes (default: 300)
       }
     }
     transform {
       cache {
         max_entries_amount: 100       # Maximum number of cached transform 
plans (default: 100)
         plan_cache_ttl_minutes: 300   # Time-to-live for cached transform 
plans in minutes (default: 300)
       }
     }
   }
   ```
   
   - max_entries_amount: limits the number of cached plans. Older entries are 
evicted when the limit is reached.
   - plan_cache_ttl_minutes: sets the lifetime of cached plans. Expired entries 
are recomputed on next use.
   
   At runtime, caching can also be toggled with:
   `planner.cache.enable (true = enabled, false = disabled)`
   
   ## Testing
   
   - Manual testing shows reduced query planning time for repeated large query 
plans.
   - Automated tests are being added to verify correctness and cache eviction 
behavior.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to