Skip to content

Maximizing query performance by joining with XML

While working on query performance optimisation, I noticed that the pattern below outperforms by a wide margin other, more obvious, ways of writing the same query. After looking at the execution plans, it appears this is due to parallelism. The table MyTable, has a clustered primary key on (Identifier, MyId, …

PDO union select results nothing

I need to select name, surname from users where username = column following inside network_follow table the query: “SELECT * FROM network_follow WHERE following = :f UNION SELECT name, surname FROM …