Closed dancoates closed 2 weeks ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 79.27%. Comparing base (
7717ebe
) to head (d41a483
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Closing in favour of #841
At the moment there is a issue with strawberry graphql which causes performance issues in cases where the field type for a large result set uses a generic input type. There is an outline of this issue here: https://github.com/strawberry-graphql/strawberry/issues/3544 and a stripped down reproduction case here https://github.com/dancoates/strawberry-generic-input-repro/blob/main/schema.py.
This PR introduces a workaround to this issue by making input types concrete before they are used in the GraphQL schema. This does introduce some code duplication, but IMO is worth it for the speed up, in my testing it has made requests 3-5x faster.