Page MenuHomePhabricator

[Federated Items] Architecture for caching/storage of remote Items
Open, Needs TriagePublic5 Estimated Story PointsSpike

Description

When a remote Item is selected and the Statement saved, that remote Item needs to be locally cached. Determine the best storage abstractions for this with the understanding that this is likely to relate to future remote Item caching. Consult with 1 to 2 experienced Wikibase engineers to consider the possible approaches and formulate a clear recommendation / decision. Options generally include:

  1. Creating a new table and related model code for cached remote Items
  2. Reuse of the existing Item table with a new attribute to indicate a remote/cached Item
  3. Use existing MediaWiki caching functionality (more suited for short term things, no guarantees about object persistence)

In Scope: Prototypical code as needed to weigh the appropriateness of each possible solution. Out of scope: A complete implementation.

Acceptance criteria:

  • A clear and substantiated decision about the best way to cache remote Items that is maintainable, extensible and consistent with overall Wikibase data model principles.
  • Any needed follow-up tickets for final implementation work in this area have been created.

Event Timeline

Restricted Application changed the subtype of this task from "Task" to "Spike". · View Herald TranscriptOct 28 2025, 12:36 PM
conny-kawohl_WMDE subscribed.

Time boxed for: 5h (decided by vote in Sprint Planning)

lojo_wmde set the point value for this task to 5.
lojo_wmde updated the task description. (Show Details)
lojo_wmde updated the task description. (Show Details)
lojo_wmde renamed this task from [Federated Values] Caching and storage of remote Items to [Federated Values] Architecture for caching/storage of remote Items.Oct 28 2025, 12:49 PM

A basic storage pattern explored and brought down to an initial possible implementation to be extended or further researched here: https://github.com/lorenjohnson/mediawiki-extensions-Wikibase/pull/3

Leif_WMDE renamed this task from [Federated Values] Architecture for caching/storage of remote Items to [Federated Items] Architecture for caching/storage of remote Items.May 12 2026, 1:01 PM

As long as we only need to know whether an item exist and need its labels + description, I think we should only save these (and not the vast statements / claims).