https://bugzilla.wikimedia.org/show_bug.cgi?id=24375
Summary: $wgDeferredUpdateList and long-running scripts
Product: MediaWiki
Version: 1.17-svn
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: Normal
Component: Maintenance scripts
AssignedTo: [email protected]
ReportedBy: [email protected]
Import scripts and probably other maintenance script call things like doEdit()
or (onArticleEdit() directly) which builds up $wgDeferredUpdateList. These
updates are not done until it finishes whatever it was doing, which means the
$wgDeferredUpdateList array can get huge and slow.
Maybe:
(a) they should call wfDoUpdates() around wfWaitForSlaves(). This is simple but
requires script writers to remember non-obvious crap
(b) stuff that uses wgDeferredUpdateList does it immediately if in cli mode
(c) stuff that uses wgDeferredUpdateList does do (nor defer) updates when in
cli mode. Callers would have to do whatever themselves (which could lead to
duplicated code).
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l