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

Create Index on certname latest_report_id

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • PDB 4.1.4
    • PDB 4.4.0
    • PuppetDB
    • PuppetDB
    • 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

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

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support