[go: up one dir, main page]

Page MenuHomePhabricator

When storing new permalinks data, update existing rows if possible rather than insert+delete
Closed, ResolvedPublic

Description

When storing new permalinks data after an edit is made, DiscussionTools would currently first store the data for the new revision by inserting new rows into discussiontools_item_revisions, then update some references to point to them, then finally delete the old now-unreferenced rows. @Ladsgroup says (on T315353) that this might cause us to run out of the primary key auto-increment values (one used for each new row) in the foreseeable future. We should change this code to update existing rows whenever possible, rather than insert+delete.

Event Timeline

Change 844573 had a related patch set uploaded (by Bartosz Dziewoński; author: Bartosz Dziewoński):

[mediawiki/extensions/DiscussionTools@master] [WIP] ThreadItemStore: Update existing rows if possible rather than insert+delete

https://gerrit.wikimedia.org/r/844573

Change 844573 merged by jenkins-bot:

[mediawiki/extensions/DiscussionTools@master] ThreadItemStore: Update existing rows if possible rather than insert+delete

https://gerrit.wikimedia.org/r/844573

Change 854068 had a related patch set uploaded (by Bartosz Dziewoński; author: Bartosz Dziewoński):

[mediawiki/extensions/DiscussionTools@wmf/1.40.0-wmf.8] ThreadItemStore: Update existing rows if possible rather than insert+delete

https://gerrit.wikimedia.org/r/854068

Change 854068 merged by jenkins-bot:

[mediawiki/extensions/DiscussionTools@wmf/1.40.0-wmf.8] ThreadItemStore: Update existing rows if possible rather than insert+delete

https://gerrit.wikimedia.org/r/854068

Mentioned in SAL (#wikimedia-operations) [2022-11-07T21:09:06Z] <urbanecm@deploy1002> Started scap: Backport for [[gerrit:854068|ThreadItemStore: Update existing rows if possible rather than insert+delete (T321121)]]

Mentioned in SAL (#wikimedia-operations) [2022-11-07T21:09:26Z] <urbanecm@deploy1002> urbanecm and matmarex: Backport for [[gerrit:854068|ThreadItemStore: Update existing rows if possible rather than insert+delete (T321121)]] synced to the testservers: mwdebug1001.eqiad.wmnet, mwdebug2002.codfw.wmnet, mwdebug2001.codfw.wmnet, mwdebug1002.eqiad.wmnet

Mentioned in SAL (#wikimedia-operations) [2022-11-07T21:16:37Z] <urbanecm@deploy1002> Finished scap: Backport for [[gerrit:854068|ThreadItemStore: Update existing rows if possible rather than insert+delete (T321121)]] (duration: 07m 30s)