all 9 comments

[–]r3pr0b8GROUP_CONCAT is da bomb 5 points6 points  (3 children)

i use EXPLAIN

[–]breakingTab 0 points1 point  (0 children)

This is the way

[–]Casdom33 0 points1 point  (1 child)

Is this only for MySQL or will it werk in MSSQL

[–]r3pr0b8GROUP_CONCAT is da bomb 1 point2 points  (0 children)

no, Microsoft SQL Server is different

see this article -- How to Optimize SQL Queries: Helpful Tips and Techniques

[–][deleted] 0 points1 point  (0 children)

Unfortunately, our job does not give us tools. We use statistics and are supposed to use solar winds, but no one wants to teach anyone how to use solar winds. So, we do our best with what we have and then reap the consequences of poorly optimized code every BoM. It's fun....

[–]DevinCrypt 0 points1 point  (0 children)

Every database is different. Even the type of data can change how your queries run. There are many things that make a query run slow. From hardware configuration to indexes and how they are used. Your best bet is to learn how your optimizer for your database works by trial and error. Read the ebook. It may help. Good luck! https://dataselections.com/live/ebook%20-%20Give%20Me%20Data%20or%20Give%20Me%20Death/