Data loader batching for subscriptions #2916
Replies: 2 comments 3 replies
-
I dont think DataLoader instrumentation makes much sense in a subscritiption world does it? You have some event that happens, you have a object passed in and you run a subscription selection on it? I guess if you squint hard enough you might use dataloader instrumentation to collect and then dispatch sub fields. What's your use case here? Can you explain it more please - perhaps with some type examples. Thinking aloud without checking deeply, I am not sure instrumentation has the hook points that would work for data loader OR we might need to have a SubscriptionDataLoaderINstrumentation say - a specialised class - because the assumptions on when fields are "ready for dispatch" might be different in a subscription event |
Beta Was this translation helpful? Give feedback.
-
I started a PR to explore the idea of DataLoader support in subscriptions What it informed me is that its actually harder than I thought - why? In a nutshell per |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Data loader batching was disabled for mutations and subscriptions some time ago in #1102 and then reenabled some time later for mutations in #2431. It seems that batching is still not enabled for subscriptions though. Is there a way to enable it, or is that something that is not supported and needs to be implemented?
Beta Was this translation helpful? Give feedback.
All reactions