Initial commit: local SQL expert AI (Ollama + CLI + prompts + systemd timer)
This commit is contained in:
25
prompts/indexing_checklist.md
Normal file
25
prompts/indexing_checklist.md
Normal file
@@ -0,0 +1,25 @@
|
||||
# Indexing Checklist (SQL Server 2022)
|
||||
|
||||
## Vor dem Index
|
||||
- Welche Query/Workload? (Top N Abfragen)
|
||||
- Welche Filter/Join-Spalten?
|
||||
- Sort/Group By/Distinct? (ORDER BY, GROUP BY)
|
||||
- Häufige Lookups? (Key Lookup / RID Lookup)
|
||||
- Schreiblast hoch? (Index-Overhead)
|
||||
|
||||
## Plausible Index-Regeln
|
||||
- Key Columns: erst Equality predicates, dann Range, dann Join keys
|
||||
- Include Columns: nur für benötigte SELECT-Spalten (Covering)
|
||||
- Filtered Index: wenn Predicate stabil/selektiv (z.B. Status='Active')
|
||||
- Datentypen sauber (keine impliziten Konvertierungen)
|
||||
- Stats: nach großen Loads/Änderungen aktualisieren (gezielt)
|
||||
|
||||
## Validierung
|
||||
- Plan vorher/nachher
|
||||
- Reads/CPU/Duration
|
||||
- Index usage (DMVs) nur als Hinweis, nicht alleinige Wahrheit
|
||||
- Regression Tests / Parameter Sets
|
||||
|
||||
---BEGIN INPUT---
|
||||
<PASTE HERE>
|
||||
---END INPUT---
|
||||
Reference in New Issue
Block a user