Description
If there's a large number of Z11s in a ZObject which has been passed to the orchestrator, or fetched from Wikidata, and if there are many different languages specified in those Z11s, that can result in lots of calls from the orchestrator to wikilambda_fetch (one call for each different language), which can cause performance issues. Recently we've found that certain lexeme senses fetched from Wikidata contain many Z11s inside a single Z12 (such as the zobject resulting from fetching sense L1-S1).
In at least one part of the orchestrator, we already avoid resolving Z12s and Z11s. We can probably be stricter about that and never resolve Z12s or Z11s, in any circumstance, UNLESS they are the top-level objects in a function call.
Large numbers of calls to wikilambda_fetch have been implicated in bugs such as T377338.
Desired behavior/Acceptance criteria (returned value, expected error, performance expectations, etc.)
- Minimal number of calls to wikilambda_fetch.
Related tickets: T379978, T379977
Remove all the non-applicable tags from the "Tags" field, leave only the tags of the projects/repositories related to this task
Completion checklist
- Before closing this task, review one by one the checklist available here: https://www.mediawiki.org/wiki/Abstract_Wikipedia_team/Definition_of_Done#Back-end_Task/Bug_completion_checklist