Patches item #3610302, was opened at 2013-04-08 05:22
Message generated for change (Tracker Item Submitted) made by nobody
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3610302&group_id=93107

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: rewrite
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Not load unnecessary data in token()

Initial Comment:
In token(), It queries info and *all* revisions of a page. Querying all 
revisions is too expensive and unnecessary. For example, if I just want to 
process the last revision of several pages and put them back, with the old 
code, it loads all revisions when putting. It makes putting in rewrite branch 
spend time about 10x compared to that in the trunk.

The patch I am presenting just do not load revisions. It shouldn't break other 
functions since needed data has included in the info of a page.

----
Pywikibot branches/rewrite/ (r11357, 2013/04/07, 14:50:30, ok)
Python 2.7.3 (default, Sep 26 2012, 21:53:58) 
[GCC 4.7.2]
unicode test: ok

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3610302&group_id=93107

_______________________________________________
Pywikipedia-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-bugs

Reply via email to