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

Function processNextBatch

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

Source from the content-addressed store, hash-verified

8612 const queue = new TaskQueue$1();
8613
8614 async function processNextBatch() {
8615 const response = await view.sourceDB.changes({
8616 return_docs: true,
8617 conflicts: true,
8618 include_docs: true,
8619 style: 'all_docs',
8620 since: currentSeq,
8621 limit: opts.changes_batch_size
8622 });
8623 const purges = await getRecentPurges();
8624 return processBatch(response, purges);
8625 }
8626
8627 function getRecentPurges() {
8628 return view.db.get('_local/purgeSeq').then(function (res) {

Callers 2

processBatchFunction · 0.70
updateViewInQueueFunction · 0.70

Calls 3

getRecentPurgesFunction · 0.70
processBatchFunction · 0.70
changesMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…