graphql-python / graphql-python/graphene

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

オープン
#1,365 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
✨ enhancement
主要言語
Python
スター
8.2k
フォーク
818
PR マージ指標
30日以内にマージされた PR はありません

説明

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.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
graphql, python
領域
api
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
15/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。