Live data from Hacker News

Is 20M of rows still a valid soft limit of MySQL table in 2023?

yishenggong.com

31–40 of 86 posts

Re: Is 20M of rows still a valid soft limit of MySQL table in 2023?

#33
In my direct experience, with small rows and a carefully optimized workload and schema, 1 to 2 billion rows was totally fine in a single MySQL 5.1 table (InnoDB) on SSDs twelve years ago. Granted, that was on bare metal. But hardware has also improved a fair bit since then...

Re: Is 20M of rows still a valid soft limit of MySQL table in 2023?

#38
post #11

Earlier quoted context omitted.

My current employer has a single InnoDB table that is 14-15 TB.

I bet queries take minutes.

An indexed read should be no different than on a table with on the order of 100K rows. And that’s even with good ol’ spinning rust.

It’s all about logical I/O operations which, for an indexed read, would only be a handful regardless of size as it’s operating on a btree: https://en.m.wikipedia.org/wiki/B-tree

Now creating that index from scratch might take a while though…

Re: Is 20M of rows still a valid soft limit of MySQL table in 2023?

#40
post #11

Thanks for repost the blog! Some crazy guys have already told me that they have mysql table >1.4B rows (~180GiB), underestimated mysql's power lol

My current employer has a single InnoDB table that is 14-15 TB.

How long does it take you to do a schema change?
Post reply on HN