Tagged articles
1 articles
Page 1 of 1
macrozheng
macrozheng
Jan 30, 2023 · Databases

Why Is MySQL count(*) So Slow and How to Supercharge It

This article explains why MySQL count(*) queries can become a performance bottleneck on InnoDB tables and presents practical optimization techniques such as Redis caching, secondary caches, multithreading, reducing joins, and even switching to ClickHouse for massive datasets.

count(*)databasemysql
0 likes · 10 min read
Why Is MySQL count(*) So Slow and How to Supercharge It