awesome-everything RU

batchLoadFn

RU: batchLoadFn

The user-supplied function passed to DataLoader's constructor that receives an array of keys accumulated during one event-loop tick and must return a Promise resolving to an array of values in the same order. It is the seam where N+1 individual loads collapse into a single batched database or API call.

shortcuts expand
search
K
prev piece
k
next piece
j
cycle tier
t
this menu
?