Skip to main content

Variable: INTERNAL_DOC_ID_PREFIXES

const INTERNAL_DOC_ID_PREFIXES: readonly string[];

Defined in: packages/client/src/core/sync/internal-docs.ts:49

Identifier prefixes that mark a document as device-local.

  • _local/ never replicates in PouchDB anyway; listed so the predicate is usable outside a replication filter too.
  • _design/ documents are Mango indexes built on demand by ClientStack.addDesignDocumentPKs, including the -temp variants.
  • ~lock- guards an in-flight class-model propagation on this device.
  • ~log- is this client's own diagnostic record. Replicating diagnostics costs quota, bandwidth and remote storage on every sync, in both directions, and tells a peer nothing it can use - logLevel: 'info' should not be a network cost. They used to carry neither a ~class nor a recognisable id, so all of them replicated: 111 of 134 documents on one measured remote. See ADR-0023.