-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add query tags for Snowflake connector to track most expensive queries (
#1776) This commit adds query tags to the Snowflake connector for the most frequently executed and expensive queries that contribute significantly to the overall cost. The tags are added using the `withMirrorNameQueryTag` method, which sets a tag with the format `peerdb-mirror-<flowJobName>` for each query. Query tags have been added to key methods: - `SyncRecords` - `NormalizeRecords` - `CreateRawTable` - `SyncFlowCleanup` - `SyncQRepRecords` - `SetupQRepMetadataTables` - `ConsolidateQRepPartitions` These methods cover core functionality of syncing, normalizing, and managing QRep tasks. The tags will help identify and track the most expensive queries in the Snowflake web interface or using the `QUERY_HISTORY` table. Some minor queries have been ignored to focus on the most impactful areas. The query tags will aid in monitoring, optimizing, and controlling costs associated with the Snowflake connector.
- Loading branch information
1 parent
e910b25
commit 2446e8e
Showing
2 changed files
with
16 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
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