We performed a scheduled maintenance to upgrade of our Amazon Aurora RDS database from cluster version 12 to 13 on 12/23/2023 to start at 3am to improve performance and scale costs. The upgrade was expected to complete before 6am PST, and the system to be up within 15 mins as the suggested required time for upgrade. However, this created unusable latency for our customers due to underestimating the need and time taken to re-run the query plan required to optimize the database after the upgrade.
AWS does not carry over table stats after a major upgrade which lead to our queries not running with the most optimized query plan.