Jira (PDB-4942) Don't open two connections for every query

3 views
Skip to first unread message

Rob Browning (Jira)

unread,
Oct 22, 2020, 3:09:03 PM10/22/20
to puppe...@googlegroups.com
Rob Browning created an issue
 
PuppetDB / Bug PDB-4942
Don't open two connections for every query
Issue Type: Bug Bug
Assignee: Unassigned
Created: 2020/10/22 12:08 PM
Fix Versions: PDB 7.0.0
Priority: Normal Normal
Reporter: Rob Browning

Zak noticed that we've unintentionally nested with-db-connection forms in the query path.  We should fix that, and ideally, if we can, in the upcoming X release (7), since it may have broader effects, i.e. suddenly freeing up a bunch of connections may well substantially increase the database load that pdb can generate, if say the hikari pool size isn't proportionally decreased.

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

Rob Browning (Jira)

unread,
Oct 22, 2020, 3:17:03 PM10/22/20
to puppe...@googlegroups.com
Rob Browning updated an issue
Change By: Rob Browning
Zak noticed that we've unintentionally nested with-db-connection forms in the query path.  We should fix that, and ideally, if we can, in the upcoming X release (7), since it may have broader effects, i.e. suddenly freeing up a bunch of connections may well substantially increase the database load that pdb can generate, if say the hikari pool size isn't proportionally decreased.


But overall, this may be a notable improvement with respect to postgresql since right now we must be overprovisioning pg connections to compensate.

 
Reply all
Reply to author
Forward
0 new messages