Jira (PDB-2770) consider a fact-paths type endpoint that just selects from fact_paths

2 views
Skip to first unread message

Wyatt Alt (JIRA)

unread,
Jun 9, 2016, 5:20:03 PM6/9/16
to puppe...@googlegroups.com
Wyatt Alt created an issue
 
PuppetDB / New Feature PDB-2770
consider a fact-paths type endpoint that just selects from fact_paths
Issue Type: New Feature New Feature
Assignee: Unassigned
Created: 2016/06/09 2:19 PM
Priority: Normal Normal
Reporter: Wyatt Alt

Currently the fact-paths endpoint needs to join facts, fact_paths, fact_values, and fact_value_types, then do a distinct over them. This is causing performance issues for some large customers and slow queries have also been noted in scale testing.

If it's the case the the console is using only the fact path out of the response, and throwing the type away, then they are likely receiving duplicate data despite the distinct (paths shared for multiple types) and the database is doing much more work than necessary. In contrast, a select * from fact_paths will always return deduplicated paths and will be much faster. If this would suit the needs of the console a separate endpoint might be warranted.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9)
Atlassian logo

Wyatt Alt (JIRA)

unread,
Jun 9, 2016, 5:23:04 PM6/9/16
to puppe...@googlegroups.com
Wyatt Alt commented on New Feature PDB-2770
 
Re: consider a fact-paths type endpoint that just selects from fact_paths

this would obviously need to be coordinated with console folks to see if it would even work cc Scott Walker Steve Quin

Claudia Petty (Jira)

unread,
Jun 21, 2023, 10:57:03 AM6/21/23
to puppe...@googlegroups.com
Claudia Petty updated an issue
 
Change By: Claudia Petty
Labels: new-feature
This message was sent by Atlassian Jira (v8.20.21#820021-sha1:38274c8)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages