MySQL One Large Table is better than many small tables

With MySQL one large table is almost always faster then many small tables. This is attributed to MySQL’s exclusive use of a nested join algorithm. Check out Peter Zaitsev comment at the end of the page.

The nested join algorithm has to loop through the inner and outer elements of the loop to find matches. The more joins, the more nested loops. So one large table is almost always better.

Of course, a huge de-normalized table has some problems, namely data duplication. If you have a list of people with addresses, changing something simple like a zip code or a city name is a pain. You have to scan the whole table changing multiple rows. A db in 3rd normal form would enable a zip code or city update of just one row.

One Response to “

MySQL One Large Table is better than many small tables

  1. MARTIN Says:

    < blockquote >< a href=”http://medicamentspot.com/”>MedicamentSpot.com. Canadian Health&Care.No prescription online pharmacy.Best quality drugs.Special Internet Prices. High quality pills. Order pills online< /a >…

    Buy:Lumigan.Zyban.Accutane.Actos.Zovirax.Prednisolone.Valtrex.Nexium.Petcam (Metacam) Oral Suspension.100% Pure Okinawan Coral Calcium.Human Growth Hormone.Retin-A.Arimidex.Prevacid.Mega Hoodia.Synthroid….

Leave a Reply