defaultShardSize top-level constant

int const defaultShardSize

Default maximum size (in bytes) of a single shard / diff document. Kept well under Firestore's 1 MiB per-document limit so that no individual write can be rejected for being too large.

Implementation

const int defaultShardSize = 512 * 1024;