26 Jun
2006
26 Jun
'06
10:41 a.m.
On Jun 26, 2006, at 9:21 AM, Johannes Berg wrote:
Also, you should lazily init the mysql connection and then either
close it, or keep it open and re-use it, currently you don't close it but re-init the mysql context and reconnect, that's probably going to
create a bunch of stale connections to the database.
Or would lib-dict's API be enough? Then you can make the connections
go through dict proxy process which keeps the MySQL connections open
all the time.