ApiQueryCategories: Supply limit for DB query
authorBrad Jorsch <bjorsch@wikimedia.org>
Wed, 28 Aug 2019 20:34:30 +0000 (16:34 -0400)
committerMobrovac <mobrovac@wikimedia.org>
Mon, 2 Sep 2019 11:39:45 +0000 (11:39 +0000)
commitd458953f205f20c6c3c297284a4aa584ad15faf4
tree8d85b6d2c10225d63dc4c67a4a521a10e6e599ab
parent97905cc790bb1c65f8f9c719607f7e91399f258c
ApiQueryCategories: Supply limit for DB query

The limit is applied in PHP, but all matching rows are being fetched
from the database. We should only fetch the number of rows needed.

Bug: T231462
Change-Id: Ie64ea6f79a187942c476868c383a1349d110aa7c
includes/api/ApiQueryCategories.php