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

Allow drop-joins to optimize some count queries

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PDB 6.14.0, PDB 7.1.0
    • Component/s: None
    • Labels:
      None
    • Template:
    • Team:
      PuppetDB
    • Story Points:
      5
    • Sprint:
      HA 2021-01-27, HA 2021-02-10
    • Release Notes:
      Enhancement
    • Release Notes Summary:
      The optimize_drop_unused_joins query parameter can now optimize queries that contain a single count function.
    • QA Risk Assessment:
      Needs Assessment

      Description

      Currently, drop-joins will abort if it sees any function. This is overly simplistic. Most of our joins are left joins, and in that case for a join to affect the result of the query, one of its columns must be extracted to a result or used in a filter. Otherwise, it's safe to drop that join and continue the query.

        Attachments

          Activity

            People

            Assignee:
            austin.blatt Austin Blatt
            Reporter:
            austin.blatt Austin Blatt
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support