Posts tagged “mongodb”
-
What does ACID actually promise, and what do you lose with BASE?
ACID is four separate promises, and most 'NoSQL vs SQL' arguments mix them up. Money transfers in PostgreSQL, MongoDB and DynamoDB, with and without transactions, with crashes: what each letter bought, measured, and why atomic writes still aren't enough if your reads aren't snapshots.
-
If MongoDB is schemaless, why do we write Mongoose schemas? Why not one collection for everything?
MongoDB stores whatever you write; Mongoose checks only what goes through Mongoose, and not all of that. Measured on MongoDB 8.2: what each layer enforces, and what one shared collection costs.