Skip to content

Document Store: Introduction

Document Store: Introduction

Part of: HeliosDB Document Store User Guide


What is a Document Store?

A document store is a type of NoSQL database that stores data as JSON-like documents. Unlike traditional relational databases with rigid schemas, document stores offer:

  • Flexible schemas: Each document can have different fields
  • Nested structures: Store complex hierarchical data naturally
  • Array support: First-class support for lists and collections
  • Dynamic fields: Add/remove fields without migrations
  • Natural mapping: JSON maps directly to application objects

Why HeliosDB Document Store?

HeliosDB’s Document Store combines the flexibility of MongoDB with enterprise-grade features:

FeatureHeliosDBMongoDBPostgreSQL JSONB
MongoDB Compatibility80% wire protocol100%0%
ACID TransactionsMulti-document⚠ LimitedFull
Query Performance<5ms (indexed)10-20ms8-15ms
Write Throughput120K docs/sec50-80K30-50K
Schema ValidationJSON Schema⚠ Limited
Change StreamsReal-time⚠ Triggers only
Full-Text SearchIntegratedAtlas Search
Geospatial Queries2dspherePostGIS
Multi-ModelSQL+Document+GraphSQL+JSONB

Key Differentiators:

  1. True ACID: Multi-document transactions with full ACID guarantees
  2. Sub-5ms queries: Indexed queries complete in <5ms (P99)
  3. 120K writes/sec: Batch inserts achieve 120K documents/second
  4. SQL Integration: Query documents using SQL or MongoDB query language
  5. Unified Platform: One database for relational, document, and graph data
  6. PostgreSQL JSONB: 100% compatible with PostgreSQL JSONB operators

MongoDB Wire Protocol Compatibility (80%)

HeliosDB supports the MongoDB wire protocol, allowing you to use existing MongoDB drivers:

Supported Operations:

  • CRUD: insert, find, update, delete, replace
  • Aggregation: $match, $group, $project, $sort, $limit, $lookup, $unwind
  • Indexes: single-field, compound, text, geospatial
  • Transactions: multi-document ACID transactions
  • Change Streams: real-time notifications
  • Authentication: SCRAM-SHA-256

Not Yet Supported (coming in v6.1):

  • ⚠ GridFS (large file storage)
  • ⚠ Sharded clusters (distributed collections)
  • ⚠ Some advanced aggregation stages ($graphLookup, $facet)

PostgreSQL JSONB Compatibility

HeliosDB’s document store is built on PostgreSQL-compatible JSONB:

-- PostgreSQL JSONB operators work directly
SELECT * FROM documents WHERE data @> '{"status": "active"}';
SELECT * FROM documents WHERE data->>'name' = 'Alice';
SELECT * FROM documents WHERE data->'tags' ? 'important';
-- HeliosDB extensions
SELECT * FROM documents WHERE data @@ '$.user.age > 25';

Navigation: ← Back to Guide Index | Next: Quick Start →