October 15, 2025 at 12:00 am
Comments posted to this topic are about the item Estimated Rows
October 15, 2025 at 12:17 pm
There may be a difference between on-prem and Azure, as I got 10 as the estimate on both with Azure SQL.
LinkedIn: https://www.linkedin.com/in/sqlrv
Website: https://www.sqlrv.com
October 15, 2025 at 1:59 pm
There's an article on MS Learn describing the cardinality guess for MSTVFs as 100 after MSSQL 2014, and 1 before:
Intelligent query processing details - SQL Server | Microsoft Learn
That threw me off a little bit when 10/100 was not an option. 🙂
October 15, 2025 at 2:13 pm
Yeah, need to specify a version here. I used SQL 2022 and that shows this reacts differently.
100 was the value for a few years, but I think that is different for generate_series.
October 15, 2025 at 3:22 pm
I'm using SQL Server 2022 and both had estimated rows as 10 on the final select. However in the Compute Scalar for the second query, it has 50 as the Estimated Number of Rows for both per row and for all executions.
Viewing 6 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply