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

Create Index on certname latest_report_id

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: PDB 4.1.4
    • Fix Version/s: PDB 4.4.0
    • Component/s: PuppetDB
    • Labels:
    • Template:
    • Story Points:
      1

      Description

      The Problem

      Event Inspector is incredibly slow with large amounts of nodes.

      The Solution

      CREATE UNIQUE INDEX idx_certnames_latest_report_id on certnames(latest_report_id)
      

      Query Plans

      Before Index ( 5+ mins ) :
      https://explain.depesz.com/s/1Ev

      After index ( ~ 8 seconds ):
      https://explain.depesz.com/s/btLS

      Pull Request

      https://github.com/puppetlabs/puppetdb/pull/2171

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              wyatt Wyatt Alt
              Reporter:
              nick.walker Nick Walker
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support