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

Function nextBatch

lib/index-browser.js:264–274  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

262 var i = 0;
263
264 function nextBatch() {
265
266 if (i >= allRequests.length) {
267 return;
268 }
269
270 var upTo = Math.min(i + MAX_NUM_CONCURRENT_REQUESTS, allRequests.length);
271 var batch = allRequests.slice(i, upTo);
272 processBatch(batch, i);
273 i += batch.length;
274 }
275
276 function processBatch(batch, offset) {
277 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…