A vendor application runs on an Azure SQL Database. The vendor requires the database to stay at compatibility level 140, and you may not change any T-SQL code. A slow query joins a table to a multi-statement table-valued function that returns tens of thousands of rows. The query uses no scalar functions and no table variables of its own. The execution plan shows that the optimizer assumed the function returns very few rows. The query does not spill to tempdb, and its memory grant is adequate.
Which intelligent query processing feature is designed to improve the plan for this query?
Choose one answer.
- Table variable deferred compilation
- Interleaved execution
- Memory grant feedback
- Scalar user-defined function inlining
- Approximate count distinct