Is 20M of rows still a valid soft limit of MySQL table in 2023?
1–10 of 86 posts
Re: Is 20M of rows still a valid soft limit of MySQL table in 2023?
#2might need to fork/run this on psql to compare performance.
Re: Is 20M of rows still a valid soft limit of MySQL table in 2023?
#3Re: Is 20M of rows still a valid soft limit of MySQL table in 2023?
#4Re: Is 20M of rows still a valid soft limit of MySQL table in 2023?
#5You can safely go to a billion rows. Use indexes. Don't do silly things like count(*) or select *, select the small data sets you need using your indexes. If you need a full table count for some reason, use a primary key that auto increments and select the max, or use information_schema for an estimate. Nobody will sweat the slight inaccuracy on a table that size.
Re: Is 20M of rows still a valid soft limit of MySQL table in 2023?
#6Re: Is 20M of rows still a valid soft limit of MySQL table in 2023?
#7You can safely go to a billion rows. Use indexes. Don't do silly things like count(*) or select *, select the small data sets you need using your indexes. If you need a full table count for some reason, use a primary key that auto increments and select the max, or use information_schema for an estimate. Nobody will sweat the slight inaccuracy on a table that size.
Re: Is 20M of rows still a valid soft limit of MySQL table in 2023?
#8Re: Is 20M of rows still a valid soft limit of MySQL table in 2023?
#9Re: Is 20M of rows still a valid soft limit of MySQL table in 2023?
#10You can safely go to a billion rows. Use indexes. Don't do silly things like count(*) or select *, select the small data sets you need using your indexes. If you need a full table count for some reason, use a primary key that auto increments and select the max, or use information_schema for an estimate. Nobody will sweat the slight inaccuracy on a table that size.
Agreed. I have a handful of tables with over 2 billion rows and have experienced no issues. One database is 2.5TB in size. I feel like 20 million rows is a relatively small MySQL table.