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

Incrementalize cost per query #41

Open
1 of 2 tasks
ian-whitestone opened this issue Dec 15, 2022 · 2 comments
Open
1 of 2 tasks

Incrementalize cost per query #41

ian-whitestone opened this issue Dec 15, 2022 · 2 comments

Comments

@ian-whitestone
Copy link
Contributor

ian-whitestone commented Dec 15, 2022

For a query history with >100M queries - model takes 8 min to run on an x-small.

If someone runs this hourly on an XSMALL, it will cost ~2.3K/year (2/60*8*24*365).

Also add:

@ian-whitestone
Copy link
Contributor Author

Alternatively, could try and use a range join strategy to reduce the speed. It's likely the cartesian join in the query_hours CTE which is killing things.

@ian-whitestone
Copy link
Contributor Author

Alternatively, could try and use a range join strategy to reduce the speed. It's likely the cartesian join in the query_hours CTE which is killing things.

nvm, cartesian join isn't the problem.

CleanShot 2023-01-06 at 17 12 46@2x

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

No branches or pull requests

1 participant