Jira (PDB-5133) Use grouping sets for event-counts endpoints

0 views
Skip to first unread message

Austin Blatt (Jira)

unread,
May 18, 2021, 8:02:02 PM5/18/21
to puppe...@googlegroups.com
Austin Blatt created an issue
 
PuppetDB / Improvement PDB-5133
Use grouping sets for event-counts endpoints
Issue Type: Improvement Improvement
Assignee: Unassigned
Created: 2021/05/18 5:01 PM
Priority: Normal Normal
Reporter: Austin Blatt

Currently, when the PE console queries the aggregate event counts endpoint and requests summarize_by="containing_class,certname,resource"}}l, the event-counts query performs the three queries in separate queries joined by {{UNION ALL. This results in the events query being run three times. Instead, we can likely get the same results using GROUPING SETS, which will only execute the underlying query once.

https://github.com/puppetlabs/pe-console-ui/blob/83f6fb5197b88f5da1f24254faa4ad3400923253/src/puppetlabs/pe_console_middleware/cm/state_inspector/core.clj#L211-L214

https://www.postgresqltutorial.com/postgresql-grouping-sets/

https://www.postgresql.org/docs/10/queries-table-expressions.html#QUERIES-GROUPING-SETS

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)
Atlassian logo

Austin Blatt (Jira)

unread,
May 19, 2021, 2:20:02 PM5/19/21
to puppe...@googlegroups.com
Austin Blatt updated an issue
Change By: Austin Blatt
Epic Link: PE-31891

Zachary Kent (Jira)

unread,
May 19, 2021, 2:33:01 PM5/19/21
to puppe...@googlegroups.com
Zachary Kent updated an issue
Change By: Zachary Kent
Sprint: HAHA/Grooming HA 2021-06-02

Zachary Kent (Jira)

unread,
May 19, 2021, 2:33:04 PM5/19/21
to puppe...@googlegroups.com

Austin Blatt (Jira)

unread,
May 20, 2021, 12:55:02 PM5/20/21
to puppe...@googlegroups.com
Austin Blatt assigned an issue to Austin Blatt
Change By: Austin Blatt
Assignee: Austin Blatt

Austin Boyd (Jira)

unread,
May 24, 2021, 4:56:02 PM5/24/21
to puppe...@googlegroups.com
Austin Boyd updated an issue
Change By: Austin Boyd
Labels: jira_escalated

Austin Boyd (Jira)

unread,
May 24, 2021, 4:56:04 PM5/24/21
to puppe...@googlegroups.com
Austin Boyd updated an issue
Change By: Austin Boyd
Zendesk Ticket Count: 1
Zendesk Ticket IDs: 44407

Eric Thompson (Jira)

unread,
Jun 2, 2021, 2:20:02 PM6/2/21
to puppe...@googlegroups.com
Eric Thompson updated an issue
Change By: Eric Thompson
Sprint: HA 2021-06-02 , HA 2021-06-16

Eric Thompson (Jira)

unread,
Jun 2, 2021, 2:23:02 PM6/2/21
to puppe...@googlegroups.com
Eric Thompson updated an issue
Change By: Eric Thompson
Sprint: HA 2021-06-02 HAHA/Grooming , HA 2021-06- 16 02

Eric Thompson (Jira)

unread,
Jul 7, 2021, 1:26:01 PM7/7/21
to puppe...@googlegroups.com
Eric Thompson updated an issue
Change By: Eric Thompson
Labels: 2021-o1-kr2 jira_escalated
Reply all
Reply to author
Forward
0 new messages