# 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--- ---END PROC---