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

Function updateDocCountIfReady

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

Source from the content-addressed store, hash-verified

5015 }
5016
5017 function updateDocCountIfReady() {
5018 if (!metaDoc || !allDocsProcessed) {
5019 return;
5020 }
5021 // caching the docCount saves a lot of time in allDocs() and
5022 // info(), which is why we go to all the trouble of doing this
5023 metaDoc.docCount += docCountDelta;
5024 metaStore.put(metaDoc);
5025 }
5026
5027 function fetchExistingDocs() {
5028

Callers 3

startTransactionFunction · 0.70
onAllDocsProcessedFunction · 0.70
writeDocFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…