Why Your SQL Server View Is Slow (And How an Inline TVF Fixes It)

SQL Server views can hide an expensive GROUP BY boundary. Here's the diagnosis and how an inline TVF brought a 3-minute query to 4 seconds.