-
-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Sort raw sql fields and conditions [Experiment] (#2988)
* feat: Sort raw sql fields and conditions [Experiment] Context: To help improve the frequency of raw sql cache hits, this PR is responsible for sorting column fields and expression conditions in raw SQL queries. Note: this code should not interferer with the current operations of Snuba query caching. This is an experiment to investigate the consistency of the natural ordering of columns and conditions. Test Plan: * Provide functionality for sorting, and select a certain percentage (defined in runtime config) of raw queries to be part of the experiment. * Exclude queries from an explicit set of referrers to avoid some computational overhead. * Record metrics of cache hits of sorted and unsorted queries. * Determine whether or not sorting should be implemented for all queries. * Revise sorting implementation to extend from formatter class * Move comparison function to parent class and add more tests * clean up
- Loading branch information
1 parent
4656668
commit f211aa3
Showing
8 changed files
with
572 additions
and
13 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
Oops, something went wrong.