Jira (PDB-4673) Provide a PQL operator that uses LIKE rather than a regex match

7 views
Skip to first unread message

Adam Bottchen (Jira)

unread,
Mar 4, 2020, 9:18:03 PM3/4/20
to puppe...@googlegroups.com
Adam Bottchen created an issue
 
PuppetDB / Improvement PDB-4673
Provide a PQL operator that uses LIKE rather than a regex match
Issue Type: Improvement Improvement
Assignee: Unassigned
Created: 2020/03/04 6:17 PM
Priority: Normal Normal
Reporter: Adam Bottchen

Problem

Right now, PQL only provides access to the regex pattern match operator. As seen in multiple customer cases, and highlighted in CDPE-2927, this operator can lead to significantly slower queries to postgres when compared to the LIKE operator. In an example dataset from a customer system, a query using the regex operator took 7 minutes to complete, but only 2.5 seconds when replaced with LIKE, as the query planner was able to prioritize the correct index.

Recommendation

Provide a PQL operator that translates into LIKE when building the resulting SQL to provide users the choice.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo

Austin Boyd (Jira)

unread,
Mar 4, 2020, 9:23:04 PM3/4/20
to puppe...@googlegroups.com
Austin Boyd updated an issue
Change By: Austin Boyd
Zendesk Ticket Count: 1
Zendesk Ticket IDs: 38273

Austin Boyd (Jira)

unread,
Mar 4, 2020, 9:23:04 PM3/4/20
to puppe...@googlegroups.com

Adam Bottchen (Jira)

unread,
Mar 9, 2020, 1:37:03 PM3/9/20
to puppe...@googlegroups.com
Adam Bottchen commented on Improvement PDB-4673
 
Re: Provide a PQL operator that uses LIKE rather than a regex match

Nick Walker. That sounds great. I opened CDPE-3042 to generalize the question rather than try to go directly to possible solutions.

Reply all
Reply to author
Forward
0 new messages