Skip to content
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

fix(qe): forward join fields for nested filters in m2m #4994

Merged
merged 8 commits into from
Sep 2, 2024

Conversation

Copy link

codspeed-hq bot commented Aug 29, 2024

CodSpeed Performance Report

Merging #4994 will not alter performance

Comparing fix-nested-filtering-relationjoins (282ba8c) with main (8225295)

Summary

✅ 11 untouched benchmarks

Copy link
Contributor

github-actions bot commented Aug 29, 2024

WASM Query Engine file Size

Engine This PR Base branch Diff
Postgres 2.062MiB 2.063MiB -916.000B
Postgres (gzip) 823.311KiB 823.718KiB -417.000B
Mysql 2.032MiB 2.033MiB -916.000B
Mysql (gzip) 811.001KiB 811.297KiB -303.000B
Sqlite 1.924MiB 1.924MiB 0.000B
Sqlite (gzip) 768.300KiB 768.302KiB -2.000B

@aqrln aqrln added this to the 5.20.0 milestone Aug 30, 2024
} else {
rf.related_field().referenced_fields()
}
rf.linking_fields().as_scalar_fields().unwrap_or_default()
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we add a comment here please?

Copy link
Contributor

Choose a reason for hiding this comment

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

This can be done after today's release.

@jkomyno jkomyno marked this pull request as ready for review September 2, 2024 09:54
@jkomyno jkomyno requested a review from a team as a code owner September 2, 2024 09:54
@jkomyno jkomyno requested review from jkomyno and removed request for a team September 2, 2024 09:54
@jkomyno jkomyno modified the milestones: 5.20.0, 5.19.1 Sep 2, 2024
@jkomyno jkomyno merged commit 611ef41 into main Sep 2, 2024
343 checks passed
@jkomyno jkomyno deleted the fix-nested-filtering-relationjoins branch September 2, 2024 10:26
jkomyno added a commit that referenced this pull request Sep 2, 2024
* test(query-engine): add regression test for prisma/prisma#25103

* Fix the IDs in schema_25103

* Add the actual failing query in prisma_25103

* Add repro for 25104

* Support m2m in join_fields

* Exclude mongodb for now

* Add a test with different pk names

* Update the test to be closer to the user's query

Co-authored-by: Alberto Schiabel <[email protected]>

---------

Co-authored-by: jkomyno <[email protected]>
Co-authored-by: Alberto Schiabel <[email protected]>
schema.to_owned()
}

#[connector_test(schema(schema_25104), exclude(MongoDb))]
Copy link
Member Author

Choose a reason for hiding this comment

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

this should have been changed before merging and the schema should use #m2m

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