|
|
|
|
|
by pradocchia
4498 days ago
|
|
I also answered "about the same", and no I didn't notice the bookmark lookup (so-called on MSSQL), but even if I had I'm not sure I would have changed my answer--well maybe I would have because I would have noticed the "trick", but putting my test-taking adaptations aside.... It is already a highly selective query. Adding a 100 bookmark lookups will not cause a material change in performance, unless this query is being executed 1000s of times per second, in which case maybe your real problem lies elsewhere. |
|
Is it? The first query is always O(1). The worst case for the latter query is that it must aggregate over 999,910 rows.
Consider the case where all values of 'a' are 123, and all values 'b' are 42, except 90.