-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sqlstats: improve
GetPercentileValues
performance
Previously, the fucntion to Query the percentile values was also doing a flush of the stream. This was required because during Insights detector, everytime some data was added a query was done after, so a flush had to be done to guarantee precision. When making the usage of the same Query function for the `GetPercentileValues` it was still doing a flush, but that was not necessary, since there was no new data, and if there was the detector was going to take care of the flush. It could also be causing contention on the stream. Since there is no need for the flush when retrieving the info for sql stats, this commits updates the Query function to have an optional flush, that can be skipped on that case. Probably other improvements can be made on the existing path, but this PR focus on the performance degradations caused by the fucntion `GetPercentileValues` and no behaviour change is made on other existing flows. Fixes #102208 Release note: None
- Loading branch information
Showing
5 changed files
with
55 additions
and
17 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
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
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
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
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