Initial commit: local SQL expert AI (Ollama + CLI + prompts + systemd timer)
This commit is contained in:
22
prompts/proc_refactor_template.md
Normal file
22
prompts/proc_refactor_template.md
Normal file
@@ -0,0 +1,22 @@
|
||||
# Stored Procedure Review / Refactor Template
|
||||
|
||||
## Kontext (optional)
|
||||
- Aufrufmuster (Parameter, typische Werte):
|
||||
- Isolation Level / Transactions:
|
||||
- Deadlocks/Blocking bekannt? (ja/nein + Hinweise)
|
||||
- Ziel: Latenz, Throughput, Stabilität, Plan-Stabilität
|
||||
|
||||
## Aufgabe
|
||||
1) Kurzfazit
|
||||
2) Detailanalyse
|
||||
- Parameter Sniffing
|
||||
- Temp tables vs table variables
|
||||
- Row-by-row (Cursor, WHILE), UDFs, RBAR
|
||||
- TRY/CATCH + Fehlerbehandlung
|
||||
- Transaktionsumfang (zu groß?), Lock Escalation, Timeouts
|
||||
3) Konkrete Refactorings (mit T-SQL)
|
||||
4) Risiken/Checks/Next steps
|
||||
|
||||
---BEGIN PROC---
|
||||
<PASTE HERE>
|
||||
---END PROC---
|
||||
Reference in New Issue
Block a user