Pierre LINDENBAUM wrote: > Hi all, > I used the mediawiki API to display the revisions about a protein > (5-Methyltetrahydrofolate-homocysteine_methyltransferase) > > As you can see here > > http://bit.ly/5omL (via wikipedia) > > or here > > http://tinyurl.com/5gpb3n (via the API) > > the xml attribute 'size' was not used before the revision @id=133637806 . > > Could you explain me why ? Is there a way to obtain this information using > the API ? > > Many thanks in advance > > Pierre Lindenbaum
size was not used on old wikipedia versions, and thus is not stored on the database for old entries. The solution is to retrieve the size is to fetch the content and measure it. A solution could be to lazily fill those fields when they're requested. Perhaps only when the revision is shown, to avoid retrieving hundreds of page contents from external storage just to display a history page. _______________________________________________ MediaWiki-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
