[Labs-l] Accessing the databases from labs - A comparison with the toolserver

Brad Jorsch (Anomie) bjorsch at wikimedia.org
Mon Jul 15 13:30:06 UTC 2013


On Jul 15, 2013 5:35 AM, "Daniel Kinzler" <daniel at brightbyte.de> wrote:
>
> That may be true if you only want to connect to one wiki's databasse. But
what
> if you want to connect to all of them, one ofter the other, or maybe just
a
> handful, as needed?

Keep a hash/dict/assoc/map of IP address to db connection, and reuse the
existing connection if you already have one for that IP?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wikimedia.org/pipermail/labs-l/attachments/20130715/eb8ce638/attachment.html>


More information about the Labs-l mailing list