|
|
|
|
|
by MoronInAHurry
2322 days ago
|
|
What exactly makes that "one of the worst-performing SQL queries you've ever seen"? It has two left joins on foreign/primary keys, and 4 trivially-indexed where conditions. That's all it has, and none of that is even slightly complex. |
|
Maybe "worst I've ever seen" is hyperbolic. My main point was, it's a sloppy query, could probably be done with a few WHERE clauses and an inner join instead, and is more evidence of shoddy coding practices.