Open sjdemartini opened 1 year ago
With the latest commit to bump to the newly-released graphene-django 3.0.2 https://github.com/graphql-python/graphene-django/releases/tag/v3.0.2 (which includes this https://github.com/graphql-python/graphene-django/pull/1401), the performance-related tests are now passing.
The only test that still fails is the unrelated one mentioned here https://github.com/tfoxy/graphene-django-optimizer/pull/83#issue-1319467642, for which that PR has added a workaround.
graphene-django
released a non-beta version of v3 in Sept 2022 (https://github.com/graphql-python/graphene-django/releases/tag/v3.0.0).This updates the dev dependencies accordingly, to no longer point to the beta releases.
This PR is meant as demonstration only, since in its current form,Now resolved with graphene-django 3.0.2.graphene-django-optimizer
unfortunately actually does not properly SQL-optimize nested fields (among other things), when used with the latest version ofgraphene-django
. This can be seen in that several tests related to SQL optimization now fail after this version upgrade, such astest_should_select_nested_prefetch_and_select_related_fields
.