WARNING: nearly every word of this post is intentionally false.
This is an April Fool’s joke.
There is so much misinformation out there about how MySQL works.
If you’ve talked to someone from PostgreSQL, you’ve surely heard
some of it: “MySQL doesn’t even have transactions,” for example.
And this from a PostgreSQL user, who uses a database that doesn’t
even run on Windows.
But even within the ranks of people who supposedly know MySQL’s
workings, lots of people just get things dead wrong. I wanted to
set the record straight here, so I thought I would give a little
walk-through of how MySQL executes a query.
Let’s see it in action from start to finish.
SELECT SQL_NO_CACHE COUNT(col1) FROM users
WHERE userid IN(
SELECT userid FROM othertbl
)
ORDER BY userid DESC;
The steps to execute this query are as …
[Read more]