Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[mssql] Speed up loading of larger views (fixes #27618)
The extent estimation was taking a long time for views because we can't use spatial index statistics - the code was doing full scan of the view. Now we try to scan just 1% of the rows to get a good estimate. If that fails (e.g. when the table is not very big) we fall back to the full scan. Test results: a view with 90k rows was taking 2.5s to estimate extents during load - now it's <0.1s
- Loading branch information
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters