Do not call connect() for each executed query
Bug #604821 reported by
wouter bolsterlee
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Anewt |
Fix Released
|
Medium
|
wouter bolsterlee |
Bug Description
AnewtDatabasePr
A better approach is described here:
http://
To post a comment you must log in.
1789 Wouter Bolsterlee 2010-10-02
[database] Don't try to connect before each query
Avoid checking for a valid connection for each executed
query. It adds extra server roundtrips for at least the
MySQL backends and does not work reliably anyway.
This also means that disconnected connections do not
automatically try to (re)connect anymore, but relying on
this was bad practice and couldn't possibly work reliably
with transactions anyway.