On Sat, Nov 1, 2014 at 2:36 AM, hoo <hoo@online.de> wrote:

Hi Everyone,

I saw that we know have a LabelLookup[0] which is awesome (thanks,
aude).

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:

https://bugzilla.wikimedia.org/show_bug.cgi?id=72627

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 memcached.


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.

Cheers,
Katie
 
Cheers,

Marius

[0]: https://gerrit.wikimedia.org/r/169330



_______________________________________________
Wikidata-tech mailing list
Wikidata-tech@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-tech



--
Katie Filbert
Wikidata Developer

Wikimedia Germany e.V. | Tempelhofer Ufer 23-24, 10963 Berlin
Phone (030) 219 158 26-0

http://wikimedia.de

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.