Currently, only on each replica on s3 we have 9477 tables that are created because of secure poll elections. For example:
root@db1157:/srv/sqldata/fawikiquote# ls -Ssh *_edits.ibd 368K bv2015_edits.ibd 176K bv2022_edits.ibd 176K ucoc2023_edits.ibd 160K bv2021_edits.ibd 144K bv2017_edits.ibd 96K pif_edits.ibd 192K bv2011_edits.ibd 176K u4c2024_edits.ibd 176K ucoc_edits.ibd 160K mcdc2021_edits.ibd 128K bv2009_edits.ibd
This is still holding data for elections from 15 years ago and is adding a lot of maintenance burden (e.g. contributing to issues in T349360: Clean up dbbackups.backup_files table (backups tracking table growing really large), files opened by mariadb, inode table, etc.). It's hard to track down what these tables supposed to be (it took me a while to figure out what pif_edits is) and it's inefficient: The table from the 2009 election has been backed up thousands of times now.
And this will get worse every year with more elections and is not sustainable.
We either need to stop creating a new table for each election or phase out previous ones. If it's needed for legal reasons, we can create a swift container and dump them there.