Last modified: 2013-11-02 03:46:51 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T36148, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 34148 - [Patch] 0.9.3; Add selection limit option
[Patch] 0.9.3; Add selection limit option
Status: RESOLVED WONTFIX
Product: MediaWiki extensions
Classification: Unclassified
ReplaceText (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch, patch-reviewed
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-02-02 04:48 UTC by MWJames
Modified: 2013-11-02 03:46 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Patch adds an option to limit the replacement selection (3.81 KB, patch)
2012-02-02 04:48 UTC, MWJames
Details
Using $dbr->select to set LIMIT instead of foreach (6.43 KB, patch)
2012-02-02 06:27 UTC, MWJames
Details

Description MWJames 2012-02-02 04:48:59 UTC
Created attachment 9946 [details]
Patch adds an option to limit the replacement selection

The patch adds an option to limit the replacement selection query. In cases of huge data sets runtime/memory can be problem for the generation of the replacement list.
Comment 1 MWJames 2012-02-02 06:27:11 UTC
Created attachment 9947 [details]
Using $dbr->select to set LIMIT instead of foreach
Comment 2 Sumana Harihareswara 2012-02-02 15:24:04 UTC
Thanks for the patch!  I've added the "patch" and "need-review" keywords so developers know that the patch awaits code review.
Comment 3 Sumana Harihareswara 2012-02-10 20:37:56 UTC
MWJames, there's been a bit of a delay in the review of patches here -- we're in a "code slush" during which we concentrate on reviewing code that has already been committed to our source code repository (see http://thread.gmane.org/gmane.science.linguistics.wikipedia.technical/57950 for more details).  But we'll try to respond to your contribution soon.  My apologies for the wait.
Comment 4 Yaron Koren 2012-02-10 20:45:09 UTC
Sumana - I think you may have misread this as a patch to MediaWiki, or a WMF-related extension. Or are WMF developers now reviewing patches to random extensions also?
Comment 5 Sumana Harihareswara 2012-02-10 20:48:57 UTC
I'm sorry, Yaron -- argh, I did misread this as a patch to a WMF-related extension.

MWJames, you can disregard my comment # 3.
Comment 6 Yaron Koren 2012-02-10 20:55:08 UTC
Okay, thanks for the clarification.

And MWJames - I do plan to look into this patch soon. :)
Comment 7 Yaron Koren 2012-02-16 17:08:34 UTC
MWJames - I finally looked into this. Having a limit for the query is a good idea, but maybe having it as a form input is "overkill"? Another option is to just have it as a LocalSettings.php setting, so that it defaults to 500 or something, but the admin can change it if necessary.
Comment 8 MWJames 2013-11-02 03:46:51 UTC
Well, I just briefly looked at the ReplaceText extension which indicates to have several design issue and the above patch-set would only increase its NPath complexity therefore closing this issue.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links