May 2019
Intermediate to advanced
484 pages
11h 23m
English
Sort operations in a query plan are very expensive, and hence we need to avoid anything that might introduce a sort where it is not needed. Using ORDER BY in our query practically guarantees a sort unless we happen to be able to leverage an index and an ordered scan.
This may be necessary if we need our result set to be returned in a specific order, but if the order is not important, this is just overhead.
In this section, we will look ...
Read now
Unlock full access