I can't remember the name of a failure in query design
I'm on SQL Server
It's about parameter values being attached to a slow query plan where if you reset the query plan cache for that query with a different set of parameters it speeds it up
@jcolebrand I don't know if I would outright call parameter sniffing a failure in query design, but the way you've described the issue, parameter sniffing does seem to be what you are asking about.
@AndriyM Well you know how you can run a query with a bad parameter and it blows up the cache but then if you run it with a different parameter suddenly 99% of the queries are perfectly happy?
I can't remember the name of that syndrome, and I think that parameter sniffing is the "root cause" but I swear there's a better name