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

[BUG] Redshift not using QUALIFY for latest records #298

Closed
tkirschke opened this issue Jan 8, 2025 · 0 comments · Fixed by #302
Closed

[BUG] Redshift not using QUALIFY for latest records #298

tkirschke opened this issue Jan 8, 2025 · 0 comments · Fixed by #302
Assignees
Labels
bug Something isn't working

Comments

@tkirschke
Copy link
Member

Describe the bug

All macros that need to get the latest existing records should use QUALIFY instead of an additional CTE with ROW_NUMBER() and WHERE. This massively boosts performance.

Environment

  • Database/Platform: Redshift
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants