Tag: MongoDB
5 posts
-
MongoDB Internals for Production: WiredTiger, ESR Indexes, Sharding and Oplog Replication
MongoDB internals: WiredTiger cache and checkpoints, oplog replication, sharding chunks and mongos routing, index strategies (ESR), and production.
-
MongoDB Modeling with Mongoose: Schemas, Query Operators, Middleware Hooks, Methods and Virtuals
Modeling MongoDB data in Node.js with Mongoose: connections, schema definitions, CRUD, query operators, middleware hooks, instance and static methods, and virtual fields.
-
SQL vs NoSQL: Choosing Between PostgreSQL, MySQL, MongoDB and Redis
A comparison of SQL and NoSQL databases covering data models, consistency guarantees, and when to choose each.
-
MongoDB Schema Design: Embed vs Reference and the Patterns That Follow
MongoDB schema design around access patterns: when to embed vs reference, one-to-few vs one-to-many, bucket, outlier, computed and versioning patterns, indexes, validation, and the trade-offs in write contention and consistency.
-
Node.js Database Integration: MongoDB, PostgreSQL, and MySQL
Connect Node.js to MongoDB (Mongoose), PostgreSQL (pg, Sequelize), and MySQL (mysql2): connection pools, CRUD, transactions, REST examples, indexes.