| Smalyshev added a comment. |
After discussion with @Jonas here's what we can do now without very major efforts:
- We make wbcheckconstraints API to produce RDF representation (also TBD) of the checks
- We create a parameter for wbcheckconstraints to only deliver results if they can be delivered fast (e.g. already cached)
- WDQS Updater, when updating an edited item, will also pull the API above and load the constraints data, and join it with the rest of the data.
This means it will only be updated when the item is edited, and only in the case if the constraint check can prepare the cached data by the time Updater gets to it. It also has a race condition where one server could hit the Wikidata before constraints are ready and the other - after, so the servers will have different data. We will need to see whether it is a real concern in production. But we could at least try this one as a prototype.
TASK DETAIL
EMAIL PREFERENCES
To: Smalyshev
Cc: hoo, abian, Micru, Agabi10, Lucas_Werkmeister_WMDE, Gehel, Smalyshev, Jonas, Aklapper, Lahi, Gq86, Darkminds3113, GoranSMilovanovic, QZanden, EBjune, merbst, LawExplorer, Avner, FloNight, Xmlizer, jkroll, Wikidata-bugs, Jdouglas, aude, Tobias1984, Manybubbles, Mbch331
Cc: hoo, abian, Micru, Agabi10, Lucas_Werkmeister_WMDE, Gehel, Smalyshev, Jonas, Aklapper, Lahi, Gq86, Darkminds3113, GoranSMilovanovic, QZanden, EBjune, merbst, LawExplorer, Avner, FloNight, Xmlizer, jkroll, Wikidata-bugs, Jdouglas, aude, Tobias1984, Manybubbles, Mbch331
_______________________________________________ Wikidata-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
