Do you avoid joining too many tables?

Last updated by Bahjat Alaadel [SSW] 4 months ago.See history

Joining too many tables in a single query can cause issues. Find out why.


Video: Avoid too many JOINs for SQL performance | Bryden Oliver (2 min)

When a query is sent to a database server, the server will then try and optimise that query into the best set of steps that will retrieve the required results. However the optimisers begin to struggle somewhere between around 4-7 tables being joined in a single query. When they struggle they tend to abandon optimisation and just brute force without using any of the available indexes.


We open source.Loving SSW Rules? Star us on GitHub. Star
Stand by... we're migrating this site to TinaCMS