enableMetadataHashCache property

bool enableMetadataHashCache
final

Whether to cache the per-user content hash used when stamping sync metadata, so an idle sync cycle skips an O(n) readAll + rehash of the whole local dataset.

Defaults to true. Every write that flows through the manager, the sync engine, or an adapter changeStream invalidates the cache. Disable only if something writes to local storage completely out-of-band (no manager, no change stream) — such writes are invisible to the cache the same way they are invisible to queueing and reactivity.

Implementation

final bool enableMetadataHashCache;