Closed kraih closed 4 years ago
The connection cache currently performs a $dbh->ping on every dequeue. That's rather expensive and there might be more efficient solutions, such as using $dbh->{Active}. We should look into this.
$dbh->ping
$dbh->{Active}
PRs would be very welcome for this.
This might be the best we can do https://github.com/mojolicious/mojo-pg/compare/581995ce510c...9b7e3bfde04c.
The connection cache currently performs a
$dbh->ping
on every dequeue. That's rather expensive and there might be more efficient solutions, such as using$dbh->{Active}
. We should look into this.