❯ man spanna/core-features
Compare collections
Compare MongoDB collections and inspect differences between environments or dataset versions in Spanna.
› /docs/compare-collections
Collection comparison helps you answer whether two datasets still match.
Good use cases
- production vs staging checks
- migration verification
- import validation
- drift detection after manual fixes
What to compare
- document counts
- key fields
- structural differences
- sample records
Best practice
Define the comparison question first. For example:
- are these collections structurally aligned
- do these records match by ID
- did the import miss documents
# something missing or wrong? tell us · or open a PR