-
Notifications
You must be signed in to change notification settings - Fork 250
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
feat: projected dependencies in the compiler #5134
Conversation
WASM Query Engine file Size
|
CodSpeed Performance ReportMerging #5134 will not alter performanceComparing Summary
|
@@ -48,15 +48,18 @@ pub fn create_records_nonempty( | |||
selected_fields: Option<&ModelProjection>, | |||
ctx: &Context<'_>, | |||
) -> Insert<'static> { | |||
let mut fields = affected_fields.iter().cloned().collect_vec(); | |||
fields.sort_by_key(|f| f.id); |
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.
needed to add a sort here, because affected_fields
is a HashSet
and produced randomly ordered columns in my tests
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.
Looks solid for the PoC level for me 👍
The only thing I am a bit worried about is whether we really derisked the whole topic around QueryGraphDependency
variants enough. But that's a discussion beyond the scope of this PR.
Closes ORM-491 and ORM-470.