DELETE statements can have a disproportionately high impact on performance of a database server. Here we explore techniques for optimizing them.
Data types matching between the table columns and queries is important – mismatch usually prevents the use of indexes.
Most DBAs know that sub-selects are typically bad for performance, but this example we encountered in the wild illustrates very well just how bad for performance sub-selects can be.
In this article we discuss a list of best practices to help you write queries that perform well and avoid writing queries that end up being unoptimizable.
ORs in SQL queries are bad for performance. Here we describe a technique for doing away with the ORs to improve performance while still retaining functional equivalence of the query.
AWS, and RDS in particular, can be very expensive. In this article we discuss techniques that can be used to reduce costs without compromising performance.
PMM fix for missing disk stats/metrics on newer kernels.