The choice of good InnoDB primary keys is a critical performance tuning decision. This post will guide you through the steps of choosing the best primary key depending on your workload.
As a principal architect at Percona, one of my main duties is to
tune customer databases. There are many aspects related to
performance tuning which make the job complex and very
interesting. In this post, I want to discuss one of the most
important one: the choice of good InnoDB primary keys. You would
be surprised how many times I had to explain the importance of
primary keys and how many debates I had around the topic as often
people have preconceived ideas that translate into doing
things a certain way without further thinking.
The choice of a good primary key for an InnoDB table is extremely important and can have huge performance impacts. When you start working with a customer using an overloaded x1.16xlarge RDS instance, with close …
[Read more]