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

            Bug ID: 71743
           Summary: LUA functions mw.wikibase.label and
                    mw.wikibase.sitelink should not load the whole entity
                    into memory
           Product: MediaWiki extensions
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: WikidataClient
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
       Web browser: ---
   Mobile Platform: ---

AFAIU current implementation of mw.wikibase.entity.lua implies loading of the
whole entity into memory both for mw.wikibase.label() and
mw.wikibase.sitelink() LUA functions. Using those functions 10 times on single
pages means loading 10 enities to memory.

There should be 2 server-side (db-side? 10k limited memory-side?) caches
Q->label and Q->sitelink for local language as most used ones. Those caches
should be used instead of internal call to getEntityObject(), unless we
checking the current entity.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to