Get the App
SLTechnology News&Howtos  ›  Database  › 

A case of SQL tuning in SQL Server

Shulou Source: shulou.com Published: 2022-06-01 06:11:28 11月13日 Update

Analysis 2:

There are a large number of multi-table joins in this SQL. Because the algorithm of statistical information of MSSQL engine is single, when dealing with a large number of cascading joins, the actual data may seriously deviate from the statistical information.

There is a serious inconsistency between Actual Rows and Estimated Rows in the connection, which becomes more serious as the number of join tables increases:

Tags: Information analysis statistics consistency sorting enterprise reality engine situation manipulation data number time environment goal algorithm error problem processing testing Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn MySQL OPPO Reno Shulou Tech Info Apple