sr_plan icon indicating copy to clipboard operation
sr_plan copied to clipboard

Multi plan for the same query is allowed, but which one is used is undefined.

Open lemontree-mxh opened this issue 5 years ago • 0 comments

The current implementation allows us create multi plan for the same query, and allow us enable all of them. and letter which one is choose is not well defined in looup_plan_by_query_hash.

How about to add a new index

create unique index sr_plans_query_hash_idx on sr_plan(query_hash) where (enable=true);

lemontree-mxh avatar Apr 25 '20 12:04 lemontree-mxh