PHP

Why are my subqueries slow?

This is why.

Note to self: Only use subqueries ( SELECT * FROM `table1` WHERE `id` IN (SELECT `id` FROM `table2`) ) when it is impossible to achieve the same result using joins.

[tags]mysql, database, optimisation, queries, subqueries[/tags]

Twitter
LinkedIn
YouTube
Instagram