© Kevin Feasel 2020
K. FeaselPolyBase Revealedhttps://doi.org/10.1007/978-1-4842-5461-5_11

11. Query Tuning with Statistics and Execution Plans

Kevin Feasel1 
(1)
Durham, NC, USA
 

There are two key tools for tuning PolyBase queries from within SQL Server: statistics and execution plans. In this chapter, we will see how statistics on external tables can allow SQL Server’s query optimizer to make better decisions regarding predicate pushdown and join order. Then, we will dig into execution plans, which will provide us information critical for optimizing query performance.

Statistics in SQL Server

SQL Server’s query optimizer makes use of statistics to gain information on the distribution of data for a column or set of columns on a table without needing ...

Get PolyBase Revealed: Data Virtualization with SQL Server, Hadoop, Apache Spark, and Beyond now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.