r113904 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r113903‎ | r113904 | r113905 >
Date:10:43, 15 March 2012
Author:maxsem
Status:ok
Tags:
Comment:
Lower the limit due to worst-case performance concerns. OpenSearchXml will generate its fast but inaccurate extracts for the remaining pages, while geosearch will not need more.
Modified paths:
  • /trunk/extensions/MobileFrontend/api/ApiQueryExcerpts.php (modified) (history)

Diff [purge]

Index: trunk/extensions/MobileFrontend/api/ApiQueryExcerpts.php
@@ -199,8 +199,8 @@
200200 ApiBase::PARAM_DFLT => 1,
201201 ApiBase::PARAM_TYPE => 'limit',
202202 ApiBase::PARAM_MIN => 1,
203 - ApiBase::PARAM_MAX => 100,
204 - ApiBase::PARAM_MAX2 => 100,
 203+ ApiBase::PARAM_MAX => 20,
 204+ ApiBase::PARAM_MAX2 => 20,
205205 ),
206206 'plaintext' => false,
207207 'continue' => array(

Status & tagging log