← 📊 Data Science

🍃 Document Store Lab

Document (base) Embedded field Relational row Sparse NULL cell
Embedded fields:
Sparse NULL cells:
Query zone:
FPS:
Drag — rotate · Scroll — zoom

🍃 MongoDB and the Trade-Offs Behind Document Databases

A side-by-side 3D collection of flexible JSON-style documents and their equivalent rows in a fixed relational table, so you can watch schema flexibility, query patterns and consistency trade-offs play out visually.

🔬 What It Demonstrates

Each document can carry its own optional nested fields without altering any other record, while the relational table needs an empty NULL cell wherever a row doesn't use a shared column — the structural cost of a fixed schema.

🎮 How to Use

Adjust document count and schema variability, switch between point lookups, filtered scans and cross-collection joins, and toggle strict versus eventual consistency to see replica nodes fall in and out of sync.

💡 Did You Know?

MongoDB's flexible schema doesn't eliminate structure — it shifts responsibility for consistency from the database engine to the application layer, which is exactly the trade-off document databases are known for.