https://bugzilla.wikimedia.org/show_bug.cgi?id=2170

--- Comment #18 from Aryeh Gregor <simetrical+wikib...@gmail.com> 2010-04-16 
00:01:53 UTC ---
If it checks category first, it can't use the page_random index, so it's O(N
log N) in the size of the category to sort its contents.  You may as well skip
the page table join and ORDER BY RAND() in that case.

I don't think it would have been trivial for MySQL to implement efficient "pick
a random row" without some kind of special index.  In any event, they don't, so
we need cl_random if we really want this enough.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to