|
|
|
|
|
by davidrowley
859 days ago
|
|
It sounds like it would have to be an opt-in feature which could be applied per query, as otherwise wouldn't it be equally as annoying if the planner didn't adapt to the table data changing? What may be better is if the executor provided feedback to the planner to tell it the new plan was worse than the old one. With that, you might be able to recover much more quickly and less likely to get a midnight phonecall. The tricky part would be when should the planner then retry the new plan again. Also, other factors that influence the plan's execution time such as locking would be a cause of noise for any sub-system that was monitoring this. |
|
Not really, because at scale tables don't change suddenly unless you release something -- and that will re-generate the plans after the perf testing.
Whatever changes slowly accumulate over time will be covered in the next release which normally should be very frequent, daily or more.