In IRC libera:#mysql somebody asked about the
performance of SHOW TABLES LIKE 'name' in MySQL 8.0,
which was slow for them, but fast in 5.7. They pointed to
a forum article from 2022
that had a similar problem with a select-statement
on I_S.TABLES.
Both cases had in common a large number of tables in a single schema. The person in IRC had around 40k tables, the person in the forum article 500k tables.
I wrote about the Million Challenge
in 2021, but was unable to follow through for personal reasons. This question prompted me to pick this up.
…
[Read more]