1

I have a View whose query plan appears to be cached, is there a way to force the View's plan to be recalculated on each access?

1 Answer 1

1

It turns out my problem is due to the VIEW containing aggregate functions.

What looks like a cached query plan is really the planner (by design) not pushing a WHERE clause applied outside the VIEW into the VIEW.

Problem explained.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.