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
@leebyron this lib looks great, thanks for sharing!
Is my assumption correct that dataloader batches requests within one event loop and send request to db on nextTick or something? I guess its only way to say when batching is finished.
If so, maybe would be good to explicitly mention that in docs as it can get important when designing backend flow.
Lets say that I have sql backend without parallelize - it seems that in that case it still might make sense to batch sql queries there, so they resolve at the same event loop, therefore they have higher chance to batch together in subsequent queries and result in less requests. Does that sounds like reasonable thought process? :-)
The text was updated successfully, but these errors were encountered:
DataLoader batches all loads which occur in a single frame of execution, but should include in the batch all loads which occur during the flushing of the "PromiseJobs" JobQueue after that same execution frame.
@leebyron this lib looks great, thanks for sharing!
Is my assumption correct that dataloader batches requests within one event loop and send request to db on nextTick or something? I guess its only way to say when batching is finished.
If so, maybe would be good to explicitly mention that in docs as it can get important when designing backend flow.
Lets say that I have sql backend without parallelize - it seems that in that case it still might make sense to batch sql queries there, so they resolve at the same event loop, therefore they have higher chance to batch together in subsequent queries and result in less requests. Does that sounds like reasonable thought process? :-)
The text was updated successfully, but these errors were encountered: