Skip to main content

validate-a-sql-query-plan

Validate a SQL query plan against representative parameters, statistics, data shape, resource use, and production-safe execution. Use when a plan may be slow, unstable, or misleading.

ソース情報

リポジトリ
protosphinx/sphinxstack
ソースの最終更新活動
2026年7月29日 13:55
検出された SKILL.md の言語
英語
スター
3
フォーク
0

インストール方法

デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。

ソースファイルを確認

インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。

ファイルエクスプローラー
2 ファイル

SKILL.md を表示中

SKILL.md
ソースの指示 · 読み取り専用プレビュー
name
validate-a-sql-query-plan
category
code
description
Validate a SQL query plan against representative parameters, statistics, data shape, resource use, and production-safe execution. Use when a plan may be slow, unstable, or misleading.
# validate-a-sql-query-plan ## When to use - Use for an exact query, engine, version, schema, and data distribution. - Do not run unsafe full execution on production. ## Procedure 1. Capture query, bindings safely, schema, indexes, statistics, settings, and expected rows. 2. Obtain estimated and authorized actual plans. 3. Inspect access, joins, order, estimates, rows, loops, filters, sorts, memory, spills, I/O, and parallelism. 4. Test representative parameter and data-skew cases. 5. Compare planning and execution time plus concurrency impact. 6. Record hypothesis, candidate change, tradeoff, rollback, and regression test. ## Failure plan - Use plan-only or a representative clone when actual execution risks service. ## Worked example A fast common parameter hides a severe nested-loop plan for one large tenant. ## Done - A query-plan report records query, environment, estimates, actuals, parameters, resources, finding, and recommendation - Version, statistics, skew, concurrency, memory, I/O, production-safety, and regression checks verify the plan
GitHubで見る