The PreloadingItemGenerator doesn't have any arguments to selectively query only some properties. If I don't need labels nor sitelinks nor aliases nor descriptions, why should I get them, wasting server- and client-side resources?
Il 13/06/2014 05:55, John Mark Vandenberg ha scritto:
Are the claims a large part of the network traffic for items you are processing? Some client time might be saved by lazy loading the claim objects from _content. The claims data is even smaller when using raw revisions instead of the API JSON.
Often a large and unnecessary part of the item download is the labels and sitelinks, which are often full of duplicated information.
Most of them time the bot doesnt need every label and sitelink. What it does need is _one_ printable label to use in the user interface, and it wants 'the label closest to the UI language'.
For one of my tasks, I wrote a function to extract the 'most latin label' , but that depends on having all of the labels and sitelinks. It would be great if the API could provide something like this, so we could request that and not fetch every label and sitelink.