To avoid the API module making 1 API call per title being looked up it should request the titles in a batch and then add them to the result.
EntityTitleLookup already has a getTitlesForIds method that we can use here.
Description
Details
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | None | T246124 [EPIC ] Use Wikidata properties to manually add statements about local items | |||
Resolved | None | T246349 Make search work with remote properties (wbsearchentities) | |||
Resolved | Addshore | T247068 Make SearchEntities use a batched title lookup |
Event Timeline
Change 577605 had a related patch set uploaded (by Addshore; owner: Addshore):
[mediawiki/extensions/Wikibase@master] Make SearchEntities use a batched title lookup
Change 578053 had a related patch set uploaded (by Addshore; owner: Addshore):
[mediawiki/extensions/WikibaseCirrusSearch@master] SearchEntitiesIntegrationTest allow use of getTitlesForIds in lookup
Change 578054 had a related patch set uploaded (by Addshore; owner: Addshore):
[mediawiki/extensions/WikibaseCirrusSearch@master] SearchEntitiesIntegrationTest remove getTitleForId in lookup mock
Change 578053 merged by jenkins-bot:
[mediawiki/extensions/WikibaseCirrusSearch@master] SearchEntitiesIntegrationTest allow use of getTitlesForIds in lookup
Change 577605 merged by jenkins-bot:
[mediawiki/extensions/Wikibase@master] Make SearchEntities use a batched title lookup
Change 578054 merged by jenkins-bot:
[mediawiki/extensions/WikibaseCirrusSearch@master] SearchEntitiesIntegrationTest remove getTitleForId in lookup mock