MCPcopy Index your code
hub / github.com/apache/pouchdb / processNextBatch

Function processNextBatch

lib/index.js:8652–8663  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8650 const queue = new TaskQueue$1();
8651
8652 async function processNextBatch() {
8653 const response = await view.sourceDB.changes({
8654 return_docs: true,
8655 conflicts: true,
8656 include_docs: true,
8657 style: 'all_docs',
8658 since: currentSeq,
8659 limit: opts.changes_batch_size
8660 });
8661 const purges = await getRecentPurges();
8662 return processBatch(response, purges);
8663 }
8664
8665 function getRecentPurges() {
8666 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…