graphql-python / graphql-python/graphene

Implement Dataloaders (N+1 issue) with middleware or follow docs example

Offen
#1,365 3 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
✨ enhancement
Vorherrschende Sprache
Python
Sterne
8.2k
Forks
818
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.