Commit 38b631b
sp_QuickieStore: use plan_id PK seek in final OUTER APPLY
The OUTER APPLY was joining #hi_id_staging_queries → query_store_plan
by query_id. Now uses #hi_id_staging_plans which has the plan_ids
directly, allowing a PK seek on query_store_plan instead of a
query_id join.
Tested on SQL2022.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 5fffeb8 commit 38b631b
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5606 | 5606 | | |
5607 | 5607 | | |
5608 | 5608 | | |
5609 | | - | |
| 5609 | + | |
5610 | 5610 | | |
5611 | | - | |
5612 | | - | |
| 5611 | + | |
| 5612 | + | |
5613 | 5613 | | |
5614 | 5614 | | |
5615 | 5615 | | |
| |||
0 commit comments