Skip to main content

Recently Updated Pages

Regex

Cheat Sheets Fundamentals

// Character class [xyz] => matches one of [x,y,z] [a-c] => matches one of [a,b,c] // Negated ch...

Updated 11 months ago by Admin

Mutex

Cheat Sheets Fundamentals

What is it mutual exclusion a synchronization primitive used in concurrent programming to ensure...

Updated 11 months ago by Admin

Setting up a Redis-Cluster in Kubernetes

Cheat Sheets Configuration Notes

Updated 11 months ago by Admin

Git

Cheat Sheets Fundamentals

Dev developing procedure checkout a new branch called "feature_branch" make modifications commit...

Updated 11 months ago by Admin

Strings

Cheat Sheets DSA

ZList: def buildZList(s: str) -> List[int]: """ Used in pattern matching: buildZList(need...

Updated 11 months ago by Admin

Finance

Cheat Sheets Finances

ISO 20022 a international standard for communication in financial systems. widely adopted by fin...

Updated 1 year ago by Admin

Inheritance Pattern

MongoDB Basic Schema Design Patterns

To apply the Inheritance Pattern to documents in a collection, you can use the aggregation framew...

Updated 1 year ago by Admin

Schema Migration

MongoDB Schema Lifecycle Management

Schema migration is transition from one schema to the next Migration Strategies: Eager: all at o...

Updated 1 year ago by Admin

Schema Evolution

MongoDB Schema Lifecycle Management

In this example, we implemented the updated reviews schema to include an optional locale field, i...

Updated 1 year ago by Admin

Schema Validation

MongoDB Schema Lifecycle Management

To create a new "sales" collection schema validation, we use the createCollection method with the...

Updated 1 year ago by Admin

Anti Patterns

MongoDB Schema Design Anti Patterns

Unbounded Arrays an array without a size limit used subset pattern or extended reference pattern...

Updated 1 year ago by Admin

Archive Pattern

MongoDB Advanced Schema Design Patterns

Move data no longer needed to a different place so performance is not dragged. archive book revi...

Updated 1 year ago by Admin

Schema Versioning Pattern

MongoDB Basic Schema Design Patterns

add a schema_version field to the document To Handle multiple versions: application handles bo...

Updated 1 year ago by Admin

Extended Reference Pattern

MongoDB Basic Schema Design Patterns

Joins are expensive so store some must have data into the child to avoid joins. This creates dat...

Updated 1 year ago by Admin

Approximation Pattern

MongoDB Basic Schema Design Patterns

When data is changing constantly, and exact statistic is not critical, we can use approximations ...

Updated 1 year ago by Admin

Computed Pattern

MongoDB Basic Schema Design Patterns

Use Case: running a function frequently degrade performance, for example: calculate the average ...

Updated 1 year ago by Admin

Outlier Pattern

MongoDB Advanced Schema Design Patterns

used when some documents are different and needs a different method to interact. example: most of...

Updated 1 year ago by Admin

Bucket Pattern

MongoDB Advanced Schema Design Patterns

The bucket pattern: groups pieces of information into buckets keep documents size predictable re...

Updated 1 year ago by Admin

Subset Pattern

MongoDB Advanced Schema Design Patterns

a book have N reviews only embed 3 reviews to the book Code Summary: Subset Pattern To apply th...

Updated 1 year ago by Admin

Single Collection Pattern

MongoDB Advanced Schema Design Patterns

The single collection pattern groups related documents of different types into a single collectio...

Updated 1 year ago by Admin