611 B
611 B
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
- Kurzfazit
- Detailanalyse
- Parameter Sniffing
- Temp tables vs table variables
- Row-by-row (Cursor, WHILE), UDFs, RBAR
- TRY/CATCH + Fehlerbehandlung
- Transaktionsumfang (zu groß?), Lock Escalation, Timeouts
- Konkrete Refactorings (mit T-SQL)
- Risiken/Checks/Next steps
---BEGIN PROC--- ---END PROC---