Uploaded image for project: 'PuppetDB'
  1. PuppetDB
  2. PDB-2159

Caching for faster reports summary query

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PDB 4.0.0
    • Component/s: None
    • Labels:
      None
    • Template:
    • 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.

        Attachments

          Activity

            jsd-sla-details-panel

              People

              • Assignee:
                Unassigned
                Reporter:
                russell.mull Russell Mull
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: