-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
refactor: migrate partner repo to kysely #15366
Conversation
11b3bb7
to
1a505ad
Compare
.select(withSharedBy) | ||
.select(withSharedWith) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.select(withSharedBy) | |
.select(withSharedWith) | |
.select((eb) => jsonObjectFrom(eb.selectFrom('sharedBy').select(columns)).as('sharedBy')) | |
.select((eb) => jsonObjectFrom(eb.selectFrom('sharedWith').select(columns)).as('sharedWith')) |
withSharedBy
/withSharedWith
effectively repeat the work that the inner joins do, so it's better to select from the already-joined tables.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested, works well!
No description provided.