Skip to content

Remove rank from all of the queries and update materialized view - #1116

Merged
MoralCode merged 1 commit into
devfrom
rank_remove_query
May 7, 2026
Merged

MoralCode merged 1 commit into
devfrom
rank_remove_query

Conversation

@cdolfi

@cdolfi cdolfi commented Apr 9, 2026 •

Copy link
Copy Markdown
Collaborator

Rank is very costly without a lot of benefit #1115 removes the need for it and this PR is the 8knot updates needed when the materialized view is changed. NOTE: we will only want to merge this when we are making our prod change to the new materialized view

Generative AI disclosure

Please select one option:

  • This contribution was NOT assisted or created by Generative AI tools.
  • This contribution was assisted or created by Generative AI tools.

If AI tools were used, please provide details below:
- What tools were used? Claude
- How were these tools used? helped me optimize the query and build on different strategies
- Did you review these outputs before submitting this PR? yes, I made back and forth edits on the query

@cdolfi
cdolfi force-pushed the rank_remove_query branch from 3d7a6f6 to 7b40028 Compare April 9, 2026 19:53
@cdolfi
cdolfi marked this pull request as ready for review April 9, 2026 19:54
@cdolfi
cdolfi marked this pull request as draft April 9, 2026 20:16
@MoralCode MoralCode modified the milestone: v1.2 Apr 15, 2026
@cdolfi
cdolfi force-pushed the rank_remove_query branch from 7b40028 to 3678c7c Compare April 15, 2026 21:44
@cdolfi
cdolfi marked this pull request as ready for review April 15, 2026 21:44
@cdolfi
cdolfi requested a review from MoralCode April 15, 2026 21:45
@cdolfi
cdolfi force-pushed the rank_remove_query branch from 3678c7c to c150d38 Compare April 22, 2026 19:52

@MoralCode MoralCode left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

code looks okay, going to ship this as a custom patch on prod.

marking as needs review to block merging it to 8knot until #1094 is complete (so that we dont create unnecessary complexity for newcomers)

@MoralCode

Copy link
Copy Markdown
Contributor

not merging this blocks our team from developing 8knot
merging it likely blocks newcomers in the same way per the above comment.

kind of rock and a hard place, but i think given we have conference demos coming up, we need to keep our ability to dev and test things

@MoralCode
MoralCode merged commit 56ed325 into dev May 7, 2026
6 checks passed
@MoralCode
MoralCode deleted the rank_remove_query branch May 7, 2026 14:58
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