-
Notifications
You must be signed in to change notification settings - Fork 829
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement Dataloaders (N+1 issue) with middleware or follow docs example #1365
Comments
I'll add my 2 cents: We had some success with relatively low effort with tfoxy/graphene-django-optimizer. |
Hey again @wodCZ ! Seems like |
@daniel-skale query User {
currentUser {
id
friends {
edges {
node {
id
username
posts (last: 1) {
edges {
node {
id
title
text
}
}
}
}
}
}
}
} Also how are you and your team enjoying graphene: This has gotten a bit longer and off-topic, so let me hide in in a spoiler (click to expand)Currently we're running on graphene-django v2 and optimizer 0.8.0 on 2 production projects, both running on single t3.small and we measured max throughput around 30 rps. Graphene v2 is some lazy piece.
At my team we noticed the same - Graphene v2 is outdated and v3 is lacking maintainers to be released. From the available python graphql libraries we evaluated that:
After evaluating all that, we decided to have a look at the node ecosystem, and after several days of researching and testing, we started a new project at Nest.js with Prisma. Can't say whether it was a good or terrible decision yet. I considered the performance, architecture (while similar to Django, in Nest it feels more natural) and most importantly type-safety to be good enough pitch points to give it a shot. All that said, if Graphene v3 was released and managed to catch back some momentum, I'd probably stick with the Django/Graphene stack, because of the rapid prototyping capabilities. I would consider the same if Strawberry got a stable version. Hope this helps :) |
Hi all, I am trying to incorporate Dataloaders (https://docs.graphene-python.org/en/latest/execution/dataloader/) to our schemas to reduce load on our DB. However, I was wondering if anyone has had experience using either a middleware implementation vs. the ones outlined in the docs?
I also found that saleor uses a slightly different approach that is more similar to what was suggested by the docs. Just wondering if any1 has had experience using this feature in a bigger project.
The text was updated successfully, but these errors were encountered: