Recently Updated Pages
Regex
// Character class [xyz] => matches one of [x,y,z] [a-c] => matches one of [a,b,c] // Negated ch...
Mutex
What is it mutual exclusion a synchronization primitive used in concurrent programming to ensure...
Setting up a Redis-Cluster in Kubernetes
Git
Dev developing procedure checkout a new branch called "feature_branch" make modifications commit...
Strings
ZList: def buildZList(s: str) -> List[int]: """ Used in pattern matching: buildZList(need...
Finance
ISO 20022 a international standard for communication in financial systems. widely adopted by fin...
Inheritance Pattern
To apply the Inheritance Pattern to documents in a collection, you can use the aggregation framew...
Schema Migration
Schema migration is transition from one schema to the next Migration Strategies: Eager: all at o...
Schema Evolution
In this example, we implemented the updated reviews schema to include an optional locale field, i...
Schema Validation
To create a new "sales" collection schema validation, we use the createCollection method with the...
Anti Patterns
Unbounded Arrays an array without a size limit used subset pattern or extended reference pattern...
Archive Pattern
Move data no longer needed to a different place so performance is not dragged. archive book revi...
Schema Versioning Pattern
add a schema_version field to the document To Handle multiple versions: application handles bo...
Extended Reference Pattern
Joins are expensive so store some must have data into the child to avoid joins. This creates dat...
Approximation Pattern
When data is changing constantly, and exact statistic is not critical, we can use approximations ...
Computed Pattern
Use Case: running a function frequently degrade performance, for example: calculate the average ...
Outlier Pattern
used when some documents are different and needs a different method to interact. example: most of...
Bucket Pattern
The bucket pattern: groups pieces of information into buckets keep documents size predictable re...
Subset Pattern
a book have N reviews only embed 3 reviews to the book Code Summary: Subset Pattern To apply th...
Single Collection Pattern
The single collection pattern groups related documents of different types into a single collectio...