ACM Editorial · 2026-11-28 · 1 min read
Embed data that is normally read together and has a bounded lifetime, such as a fixed address snapshot on an issued document.
Start with access patterns
Embed data that is normally read together and has a bounded lifetime, such as a fixed address snapshot on an issued document. Reference independent entities that can grow or be shared. Avoid unbounded arrays of transactions inside a single document.
Use validation deliberately
A flexible schema is not the same as no schema. Define field types, required values and business identifiers. Add indexes for common lookup and sorting operations, and review the cost of indexing frequently updated fields.
Handle consistency
Single-document updates can be atomic, but operations spanning several documents may require transactions. Decide which data must be consistent immediately, particularly financial records and access grants.
Keep portability and recovery in mind
Document data export and migration. Test restore procedures and application upgrades with realistic sample data, not just an empty collection. Use separate credentials and avoid exposing a database directly to public clients.

