Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor queries_grouped_by_hash and add 4 additional Optimization Scripts #471

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

afleisc
Copy link
Collaborator

@afleisc afleisc commented Jan 14, 2025

Some customers have a greater focus on duration of queries rather than total slots. The queries_grouped_by_hash_project/org_duration scripts break each query down by duration percentile rather than focusing solely on slot time which can save time rather than modifying a previous script.

Added two additional scripts to gain insights into customers who use BI Engine. One focuses on the duration of each BI Engine mode so they can monitor whether or not BI Engine is helping. The other focuses on why BI Engine was disabled so they can understand why BI Engine may not have been used.

Refactored queries_grouped_by_hash to add ordering and limit clauses. The current comments in the scripts don't align with the script logic.

Also updated the README to reflect some of the latest changes to queries_grouped_by_hash. There were broken links because we broke queries_grouped_by_hash into two separate scripts for project and organization.

1,
2
ORDER BY day, bi_engine_mode ASC;

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this file and simply add duration columns to the existing queries_grouped_by_hash_org.sql script

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this file and simply add duration columns to the existing queries_grouped_by_hash_project.sql script

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants