graphql-python / graphql-python/graphene
Implement Dataloaders (N+1 issue) with middleware or follow docs example
- Lenguaje dominante
- Python
- Estrellas
- 8.2k
- Forks
- 818
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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](https://jerrynsh.com/solving-n-1-in-graphql-python-with-dataloader/) implementation vs. the ones outlined in the docs?
I also found that [saleor ](https://github.com/mirumee/saleor/blob/master/saleor/payment/dataloaders.py)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.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
Start by comparing the Graphene dataloader documentation with the linked middleware article and Saleor's dataloaders.py example. The issue does not identify a repository file, test, concrete implementation target, or definition of done, so the desired approach and completion criteria need to be established first.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- graphql, python
- Área
- api
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 15/100