You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
DataLoader used inside node resolvers do not batch #7635
After upgrading to the final version of 14 we noticed that all our node resolver fields that use data loaders do not properly batch (it works for all other non-'node' fields). I think I nailed it down to the introduction of this #7556. The node field no longer has the ParallelExecutable flag, so the data loaders do not batch, they just get scheduled immediately.
What is expected?
That upon two node queries in the same request, using the same data loader, would yield a single load inside the data loader (a single SQL query, in our case).
What is actually happening?
Upon two node queries in the same request, using the same data loader, it yields TWO separate loads inside the data loader (two SQL queries, in our case).
Activity
[-]Data loaders used inside node resolvers do not batch[/-][+]DataLoader used inside node resolvers do not batch[/+]