MongoDB data modeling: the patterns you will actually use
A catalogue of twelve MongoDB modeling patterns, each with a document shape, the query or update that uses it, and what it costs.
#data-modeling#nosql#schema-design
Topic
A catalogue of twelve MongoDB modeling patterns, each with a document shape, the query or update that uses it, and what it costs.
#data-modeling#nosql#schema-design
How to design a MongoDB schema from the workload, the hard limits that constrain it, and seven anti-patterns with a way to detect and fix each.
#data-modeling#nosql#performance
Scan with a FilterExpression still reads and bills every item. Use GSIs, sparse indexes and composite sort keys instead, and know when to send queries elsewhere.
#data-modeling#indexing#nosql
Writes fail and reads still work. Understand Redis eviction policies, find what's filling memory, and pick the right fix depending on whether Redis is a cache or a datastore.
#caching#configuration#nosql
Yellow means missing replicas and red means missing primaries. Use the allocation explain API to find the exact cause: replica count, disk watermarks, allocation filters or failed retries.
#configuration#nosql#troubleshooting
The 100 MB blocking-sort limit means your index doesn't provide the sort order. Build compound indexes with the ESR rule, order pipeline stages correctly, and know when allowDiskUse is fine.
#indexing#nosql#performance
The core modeling decision in MongoDB, with simple rules of thumb for one-to-few, one-to-many and many-to-many relationships.
#data-modeling#nosql#schema-design
Put Redis in front of your database the right way — choose a caching pattern, set sane TTLs, and avoid stampedes and stale data.
#caching#nosql#performance
Forget normalization. In Cassandra you model one table per query, choose partition keys carefully and keep partitions bounded.
#data-modeling#nosql#schema-design
Decide between a relational and a NoSQL database by comparing schema enforcement, query flexibility, transactions, consistency and scaling, with a practical checklist.
#nosql#scalability
Understand the four NoSQL families (key-value, document, wide-column and graph), see a working example of each, and learn what each one makes you give up.
#big-data#nosql