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.
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).
Cheers,
Marius
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
Wikidata-tech mailing list Wikidata-tech@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-tech
wikidata-tech@lists.wikimedia.org