[PDB-2159] Caching for faster reports summary query Created: 2015/11/05  Updated: 2016/03/17  Resolved: 2016/01/11

Status: Closed
Project: PuppetDB
Component/s: None
Affects Version/s: None
Fix Version/s: PDB 4.0.0

Type: Improvement Priority: Normal
Reporter: Russell Mull Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Epic Link: High Availability Phase 2
Story Points: 3
Sprint: PuppetDB 2015-12-02, PuppetDB 2015-12-16, PuppetDB 2015-12-30, PuppetDB 2016-01-13

 Description   

The reports summary query is O(n); this could get out of hand when people have lots of nodes.

  • On startup, do an initial report summary query to heat up an in-memory cache
  • Watch the commands-processed channel; when a report is processed, invalidate the cache entry corresponding to it. (from the producer_timestamp)
  • When executing the summary query, fill out invalidated slots in the cache.

Generated at Wed Jun 26 22:59:37 PDT 2019 using JIRA 7.7.1#77002-sha1:e75ca93d5574d9409c0630b81c894d9065296414.