Fix N+1 problem in GraphQL federation #1952
-
Hi guys, I have pasted a link below where I have explained the issue, I would like to discuss related to the N+1 problem in the Federation. Issue comment Example Repository for federation (take a look at ProductType) Moreover, @patrick91 has mentioned related to async |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
I think adding support for async resolver_reference shouldn't be too difficult, @Sheikhharis50 do you want to try? |
Beta Was this translation helpful? Give feedback.
-
I'm probably a bit too late but you can use dataloaders to solve N+1: https://gitlab.com/manga-microservices/identity/-/blob/main/src/gql/users/types.py#L18 |
Beta Was this translation helpful? Give feedback.
I'm probably a bit too late but you can use dataloaders to solve N+1: https://gitlab.com/manga-microservices/identity/-/blob/main/src/gql/users/types.py#L18