Why
- SecurePoll is installed on all 1000 wikis, including its 12 SQL tables. DBAs have indicated that these 12,000 tables are causing strain and scalability issues.
- It is unusual for an extension to create 12 tables. This is a lot.
- Most wikis only need to support redirect polls (global elections), which only needs 5 out of the 12 tables.
What
- Decide what the non-essential tables are (any tables not involved in redirect polls)
- securepoll_cookie_match
- securepoll_log
- securepoll_options
- securepoll_questions - has data sometimes :(
- securepoll_strike
- securepoll_voters - has data sometimes :(
- securepoll_votes
- Write a maintenance script to DROP non-essential tables that have no data + the wiki does not have securepoll-create-poll right.
- Ask DBAs to run the maintenance script on most wikis
- s2
- s3
- s4
- s5
- s6
- s7
- s8
- Decide if it's safe to delete some tables that are probably not needed for redirect polls but that commonly have data for some reason (old versions of SecurePoll used to put data here maybe?)
- securepoll_questions
- securepoll_voters
- Investigate if we can re-architect redirect polls to use even less tables than the 5 they currently use. This could lead to us being able to drop even more tables.
- securepoll_elections
- securepoll_entity
- securepoll_lists
- securepoll_msgs
- securepoll_properties
- Update https://www.mediawiki.org/wiki/Extension:SecurePoll documentation to indicate that some wikis don't have all 12 tables, and list what tables are missing
- Create a work instruction for setting up local elections at https://www.mediawiki.org/wiki/Extension:SecurePoll#Enabling_local_elections_on_a_Wikimedia_wiki , and make sure that the step "work with DBAs to create additional tables X, Y, and Z" is included.
See also: T395921: Investigate if some SecurePoll SQL tables can be merged
