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.