Jira (PDB-5495) Investigate observed slow/expensive environment gc query

5 views
Skip to first unread message

Rob Browning (Jira)

unread,
May 10, 2022, 12:21:01 PM5/10/22
to puppe...@googlegroups.com
Rob Browning created an issue
 
PuppetDB / Task PDB-5495
Investigate observed slow/expensive environment gc query
Issue Type: Task Task
Assignee: Unassigned
Components: PuppetDB
Created: 2022/05/10 9:20 AM
Priority: Normal Normal
Reporter: Rob Browning
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.20.2#820002-sha1:829506d)
Atlassian logo

Rob Browning (Jira)

unread,
May 10, 2022, 12:29:02 PM5/10/22
to puppe...@googlegroups.com
Rob Browning updated an issue
Change By: Rob Browning
While evaluating an escalation, this was noticed in the logs:

{code}
LOG:  duration: 37777.734 ms  execute <unnamed>: DELETE FROM environments WHERE ID NOT IN
         (SELECT environment_id FROM catalogs WHERE environment_id IS NOT NULL
            UNION SELECT environment_id FROM reports
                    WHERE environment_id IS NOT NULL
            UNION SELECT environment_id FROM factsets
                    WHERE environment_id IS NOT NULL)
LOG:  temporary file: path "pg_tblspc/16400/PG_11_...", size 127286260
{code}

This ticket's a reminder to evaluate whether that's actually the query we want, e.g. union vs union all, etc.

Rob Browning (Jira)

unread,
May 10, 2022, 12:29:02 PM5/10/22
to puppe...@googlegroups.com
Rob Browning updated an issue
While evaluating an escalation, this was noticed in the logs:

{code}
LOG:  duration: 37777.734 ms  execute <unnamed>: DELETE FROM environments WHERE ID NOT IN
         (SELECT environment_id FROM catalogs WHERE environment_id IS NOT NULL
            UNION SELECT environment_id FROM reports
                    WHERE environment_id IS NOT NULL
            UNION SELECT environment_id FROM factsets
                    WHERE environment_id IS NOT NULL)
LOG:  temporary file: path "pg_tblspc/16400/PG_11_...", size 127286260
{code}

This ticket's a reminder to evaluate whether that's actually the query we want, e.g. {{ union }} vs {{ union all }} , etc.
Reply all
Reply to author
Forward
0 new messages