MCPcopy
hub / github.com/apache/pouchdb / nextBatch

Function nextBatch

lib/index.js:268–278  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

266 var i = 0;
267
268 function nextBatch() {
269
270 if (i >= allRequests.length) {
271 return;
272 }
273
274 var upTo = Math.min(i + MAX_NUM_CONCURRENT_REQUESTS, allRequests.length);
275 var batch = allRequests.slice(i, upTo);
276 processBatch(batch, i);
277 i += batch.length;
278 }
279
280 function processBatch(batch, offset) {
281 batch.forEach(function (docId, j) {

Callers 2

processBatchFunction · 0.70
bulkGetFunction · 0.70

Calls 1

processBatchFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…