Initial commit: local SQL expert AI (Ollama + CLI + prompts + systemd timer)

This commit is contained in:
2026-01-27 21:30:15 +01:00
commit 394edc1709
18 changed files with 574 additions and 0 deletions

View 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---