While investigating whether modtoken in mainstash is useful or not. I went through one binlog and this caught my eye. That binlog I checked span through 2012 seconds (roughly half an hour) and in duration of half an hour enwiki:ResourceLoaderModule-dependencies:ext.wikimediaBadges|vector-2022|en key got written into 16,430 times (that's 17% of all of the writes).
In that specific case, all of the writes are one of exactly two values (the same value gets written many times, after a couple of seconds it switches to another value and written many times, and then back). I put 30 of the writes in P74161. Other cases might be different.
The top offenders are but basically almost all of them are suffering from the exact same problem:
enwiki:ResourceLoaderModule-dependencies:ext.wikimediaBadges|vector-2022|en 16430 1741468471 1741466459 commonswiki:ResourceLoaderModule-dependencies:ext.uls.pt|vector-2022|en 5323 1741468471 1741466459 ruwiki:ResourceLoaderModule-dependencies:ext.wikimediaBadges|vector|ru 4892 1741468470 1741466460 dewiki:ResourceLoaderModule-dependencies:ext.wikimediaBadges|vector|de 3648 1741468470 1741466460 eswiki:ResourceLoaderModule-dependencies:ext.wikimediaBadges|vector-2022|es 3547 1741468471 1741466460 frwiki:ResourceLoaderModule-dependencies:ext.wikimediaBadges|vector-2022|fr 2527 1741468471 1741466459
Just fixing these top six will reduce the write load on production by 35%.









