[Labs-l] Performance of crosswiki query tools

Paul Selitskas p.selitskas at gmail.com
Sun Sep 1 17:10:25 UTC 2013


Have you tried using several concurrent db connections instead of one
connection & `use` statements? I'm just curious how costly it is (cpu/mem).


On Sun, Sep 1, 2013 at 8:02 PM, Jesse (Pathoschild)
<pathoschild at gmail.com>wrote:

> Hello,
>
> I noticed a performance issue with tools that query data from many wikis.
> I open connections to each DB slice, then do a "use `dbname`" to switch
> to each wiki for the relevant queries. This is *very* slow on Tools Labs;
> does the Tools Labs infrastructure make "use `dbname`" significantly
> slower? Is there a more efficient way to do this?
>
> I created a simple script which reproduces the issue. It runs in 0.3
> seconds on the Toolserver<https://toolserver.org/~pathoschild/accounteligibility/test.php>(
> source <http://pastebin.com/ctUQsXZm>), but takes a whopping 23 seconds
> on Tools Labs<http://tools.wmflabs.org/pathoschild-contrib/accounteligibility/test.php>(
> source <http://pastebin.com/Xi3abGFP>). The scripts shows the profiling
> results at the bottom of the page (click the [+] next to "*Page generated
> in XX seconds*").
>
> --
> Jesse Plamondon-Willard (Pathoschild)
>
> _______________________________________________
> Labs-l mailing list
> Labs-l at lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/labs-l
>
>


-- 
З павагай,
Павел Селіцкас/Pavel Selitskas
Wizardist @ Wikimedia projects
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wikimedia.org/pipermail/labs-l/attachments/20130901/30b1c5df/attachment.html>


More information about the Labs-l mailing list