API: (bug 16549) Kill a filesort in list=allpages&apfilterlanglinks=withlanglinks...
authorRoan Kattouw <catrope@users.mediawiki.org>
Sun, 14 Dec 2008 17:04:24 +0000 (17:04 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Sun, 14 Dec 2008 17:04:24 +0000 (17:04 +0000)
commit684a4c3fb73b9bfd41775260c2bb98ce219494f3
tree6a78288777ba65451b58eeb0bb7d267d464c3735
parent65a7f19470555a796dcc45d4a9947d4b4f81ef60
API: (bug 16549) Kill a filesort in list=allpages&apfilterlanglinks=withlanglinks by replacing DISTINCT with GROUP BY. Of course GROUP BY page_namespace, page_title would suffice on MySQL, but Postgres will reportedly whine about that being against the SQL standard. Using GROUP BY on all selected fields instead (should please pgsql) and taking care that page_namespace, page_title is on front, which shouldn't cause a filesort is MySQL is smart enough (5.0 is, let's just hope 4.1 is too)
includes/api/ApiPageSet.php
includes/api/ApiQueryAllpages.php