You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's a dramatic reduction in query performance when using GraphQL with graphene-mongo, as opposed to a regular REST API doing something like list(collection.objects.all()) and sending the entire document set. From 300ms to over 6 seconds to retrieve one field from 100 elements.
I believe that using the DataLoader pattern is the expected solution to the N+1 problem, but actually attempting to use it will cause a runtime error
graphql.error.located_error.GraphQLLocatedError: Data loader batch_load_fn function raised an Exception: AttributeError("type object 'Person' has no attribute 'objects'",)
The text was updated successfully, but these errors were encountered:
@illeatmyhat : It supports relay query with DataLoader by #91, but not sure solves your error or not, and I think it needs to do some change of the backend implementation you work with.
Since you don't have the code that I can't investigate further 😟
Uh oh!
There was an error while loading. Please reload this page.
There's a dramatic reduction in query performance when using GraphQL with graphene-mongo, as opposed to a regular REST API doing something like
list(collection.objects.all())
and sending the entire document set. From 300ms to over 6 seconds to retrieve one field from 100 elements.I believe that using the DataLoader pattern is the expected solution to the N+1 problem, but actually attempting to use it will cause a runtime error
The text was updated successfully, but these errors were encountered: