Discussion about this post

User's avatar
Corey's avatar

This is the same technique that Looker uses for all DBs, not just the ones that don't support CTEs.

Unfortunately, it trades what would be 2 O(N) operations for one O(N^2) operation, which is an unfortunate trade-off.

Additionally, I have found it extremely difficult to debug or tune queries written like this.

Expand full comment
Mitchell Posluns's avatar

Lloyd did a great video presentation of this article at Data Council in March 2023 - I found the accompanying visuals a great addition, link is here: https://www.youtube.com/watch?v=zmmJgwc3oPI

Expand full comment
4 more comments...

No posts