Do not add limit to ApiQueryPagePropNames when database type is mysql
authorAmir Sarabadani <ladsgroup@gmail.com>
Mon, 24 Apr 2017 12:58:51 +0000 (17:28 +0430)
committerGergő Tisza <gtisza@wikimedia.org>
Mon, 24 Apr 2017 14:00:12 +0000 (14:00 +0000)
commite2ad38f8e94838a90ccc151d554969cf81558839
tree24348f9faf9376cf320a67c35da06080677b603c
parent7d6a1b8b94c7863275b194212099ad4aad70b1b2
Do not add limit to ApiQueryPagePropNames when database type is mysql

It's a known bug in some versions of mysql (including WMF dbs) that it
won't do a loose index scan when a limit is applied. Given that number
of possible types is still very low, this shouldn't be a problem.
More info: https://bugs.mysql.com/bug.php?id=61517

Bug: T115825
Change-Id: I4c3b885ac05b793088a92e054a38a36b9d07c0d4
includes/api/ApiQueryPagePropNames.php