-
-
Notifications
You must be signed in to change notification settings - Fork 536
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf(listconnection): only resolve edges when edges or pageInfo are s…
…elected (#3480)
- Loading branch information
1 parent
65142b8
commit a2b41fc
Showing
4 changed files
with
79 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Release type: patch | ||
|
||
This release adds an optimization to `ListConnection` such that only queries with | ||
`edges` or `pageInfo` in their selected fields triggers `resolve_edges`. | ||
|
||
This change is particularly useful for the `strawberry-django` extension's | ||
`ListConnectionWithTotalCount` and the only selected field is `totalCount`. An | ||
extraneous SQL query is prevented with this optimization. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters