Lucas_Werkmeister_WMDE added a comment.
Hm, apparently memcached even has an `add` command that atomically sets an entry only if it doesn’t exist. (Thus is exposed in `BagOStuff` too; in Redis it corresponds to the `nx` flag). In that case, do we even need the database lock at all? Previously, the database lock prevented that two requests simultaneously get the entry, see it doesn’t exist, create it, and then successfully save (with the lock, that sequence is only possible if one request drops the lock, at which point it will no longer successfully save). But with `add` it seems like we might not need that at all? TASK DETAIL https://phabricator.wikimedia.org/T291377 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Lucas_Werkmeister_WMDE Cc: Aklapper, hoo, Lea_Lacroix_WMDE, Mohammed_Sadat_WMDE, Lydia_Pintscher, Addshore, Lucas_Werkmeister_WMDE, Invadibot, maantietaja, Akuckartz, Iflorez, alaa_wmde, Nandana, lucamauri, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, Wikidata-bugs, aude, Mbch331
_______________________________________________ Wikidata-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected]
