daniel added a comment. On the client wiki, we are tracking which page uses which data item, by inserting rows into the wbc_entity_usage table. On the repo, we do similar tracking of which data item links to which client page (wb_items_per_site), which labels, aliases and descriptions are defined for an item (wb_terms), which property has which type (wb_peroperty_info), etc. Basically, quite similar to what the link tables do in core.
Deferring the updates until the end of the request would probably be ok, but might prove problematic for tables used for uniqueness checks (currently, wb_terms and wb_items_per_site, though I hope to reduce this in the future, see https://phabricator.wikimedia.org/T74430). TASK DETAIL https://phabricator.wikimedia.org/T86305 REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>. EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: daniel Cc: Aklapper, daniel, aude, hoo, Lydia_Pintscher, aaron, ori, Jackmcbarn, Anomie, cscott, Wikidata-bugs, Jdforrester-WMF, Legoktm _______________________________________________ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs