> Could this be a rare case of the mythical sufficiently smart compiler having more information at runtime than the programmer has at coding time [...]
Mythical? Isn't this the core concept behind optimizing JITs?
Mythical? Isn't this the core concept behind optimizing JITs?
Could this be a rare case of the mythical sufficiently smart compiler having more information at runtime than the programmer has at coding time, and that if you could hint which index to use, the trade off would be that you'd instead be troubleshooting queries which end up slower because of it?