|
|
|
|
|
by magicalhippo
268 days ago
|
|
We're experiencing the same with MSSQL, and for our most important queries have started adding a constant-valued dummy column to the SELECT section which value changes every few minutes. Essentially an integer equal to UNIX time divided by 600 or similar. That way a cached bad plan can't cause issues for more than a few minutes, which is acceptable for our use-case. It's a sledgehammer but it was easy to add and it works. |
|
That might work in your case as well, without requiring modifications in logic to support the dummy field?