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

Function processNextBatch

lib/index.es.js:8647–8658  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8645 const queue = new TaskQueue$1();
8646
8647 async function processNextBatch() {
8648 const response = await view.sourceDB.changes({
8649 return_docs: true,
8650 conflicts: true,
8651 include_docs: true,
8652 style: 'all_docs',
8653 since: currentSeq,
8654 limit: opts.changes_batch_size
8655 });
8656 const purges = await getRecentPurges();
8657 return processBatch(response, purges);
8658 }
8659
8660 function getRecentPurges() {
8661 return view.db.get('_local/purgeSeq').then(function (res$$1) {

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…