On Sat, Nov 1, 2014 at 2:36 AM, hoo <hoo(a)online.de> wrote:
I saw that we know have a LabelLookup which is awesome (thanks,
I would like to use the some kind of label lookup in our Lua bindings,
as getting labels there is insanely heavy (we get the entity, then push
the whole thing into Lua and then extract the label).
Sadly the current label lookup is uncached and as far as I can see we
neither have a change to fix that nor a bug for the issue, yet.
We would like to batch the lookups, which is feasible at least in the repo
and need to see about the client:
If that is not sufficient, then I think we want some caching lookup, but
maybe with only the most used items and/or perhaps use something other than
It would be great to hear about why we don't have
this yet (or am I
missing something?) and whether you think it's ok to use it yet (don't
want to knock over the DB by hitting wb_terms a lot).
I wouldn't use it yet. Indeed it seems slower than getting all the entities
from memcached and looking up the label that way. In terms of memory usage,
not sure yet.
Wikidata-tech mailing list
Wikimedia Germany e.V. | Tempelhofer Ufer 23-24, 10963 Berlin
Phone (030) 219 158 26-0
Wikimedia Germany - Society for the Promotion of free knowledge eV Entered
in the register of Amtsgericht Berlin-Charlottenburg under the number 23
855 as recognized as charitable by the Inland Revenue for corporations I
Berlin, tax number 27/681/51985.