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

Allow drop-joins to optimize some count queries

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • None
    • PDB 6.14.0, PDB 7.1.0
    • PuppetDB
    • None
    • Enhancement
    • The optimize_drop_unused_joins query parameter can now optimize queries that contain a single count function.
    • 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

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

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support