3 ms·
Having the connection for longer than needed only puts more pressure on databases on which connections are a scarce resource (basically only postgres, and even
by WJW 2y ago
Having the connection for longer than needed only puts more pressure on databases on which connections are a scarce resource (basically only postgres, and even then it's easily fixed with pgbouncer). When using a database with a better connection model, holding a connection too long will actually decrease total load on the database because each connection is idle for a larger percentage of the time.
- CoolCold 2y agoIsn't pgbouncer putting extra limitations like prepared statemens use ? Genuine question