Skip to content

Move my_follows to CTE.#40

Merged
stereosteve merged 1 commit intomainfrom
sp_my_follows
Apr 23, 2025
Merged

Move my_follows to CTE.#40
stereosteve merged 1 commit intomainfrom
sp_my_follows

Conversation

@stereosteve
Copy link
Copy Markdown
Contributor

This does make the followee_reposts and followee_saves results aproximate, but it avoids paying join tax twice in subquery. And the results are likely identical.

Takes cost estimate from:
1,451,862 -> 905,567

See explains:
https://gist.github.com/stereosteve/a606eb94e607f45f1fa8889a5cc87fcd

Avoid paying join tax twice in subquery.
@stereosteve stereosteve merged commit 0943a61 into main Apr 23, 2025
2 checks passed
@stereosteve stereosteve deleted the sp_my_follows branch April 23, 2025 15:22
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.

1 participant