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

DELETE FROM edges is extremely slow

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PDB 3.2.5, PDB 4.0.0
    • Component/s: None
    • Labels:
      None
    • Template:
    • Story Points:
      1
    • Sprint:
      PuppetDB 2016-03-09, PuppetDB 2016-02-24

      Description

      We were seeing a lot of DELETE FROM edges queries taking 4-6s or more. We added some indices on edges which seems to have solved it:

          "edges_certname_idx" btree (certname)
          "edges_source_hex_idx" btree (encode(source, 'hex'::text))
          "edges_target_hex_idx" btree (encode(target, 'hex'::text))
          "edges_type_idx" btree (type)
      

        Attachments

          Activity

            People

            Assignee:
            ryan.senior Ryan Senior
            Reporter:
            daenney Daniele Sluijters
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support