Enable sorting when batching is enabled by PaulSchweizer · Pull Request #355 · graphql-python/graphene-sqlalchemy
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need the get_event_loop() call in the else part? Isn't that initially covered by aiodataloader already, and shouldn't the cache also get a full reset if the event loop changes (implying thread restart/change)?
aiodataloader recommends to create a new loader for each request, this would keep the loaders between different queries, right?