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

PR (1366): (maint) Speed up storage.clj `<hash> in (?,?,?...)` queries - ajroetker

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PDB 3.0.0
    • Component/s: None
    • Labels:
    • Template:
    • Story Points:
      1
    • Sprint:
      PuppetDB 2015-05-06

      Description

      (maint) Speed up storage.clj `<hash> in (?,?,?...)` queries

      Pull Request Description


      This commit addresses an issue where the above query for both
      `resources` and `facts` was very slow on Postgres because we were
      trimming the bytea hash to a string which was causing Postgres to do a
      table scan. This commit fixes this issue by changing the parameters in
      the `(?,?...)` to be munged bytea hashes so we don't do a table scan.


      (webhooks-id: b975bde4fc665c67f43d2b16a4f9a041)

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            gepetto-bot gepetto-bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support