PostgreSQL
Production-ready PostgreSQL adapter with full transaction support.Installation
Configuration
Schema Export
Features
- Transaction support
- Connection pooling
- Schema namespacing
- Full-text search
- JSONB columns for metadata
- Performance indexes
LibSQL (Turso)
Serverless SQLite-compatible database, perfect for edge deployments.Installation
Configuration
Features
- Edge-compatible
- Low latency
- Embedded mode
- Sync with Turso
- SQLite compatibility
MongoDB
Flexible document database for semi-structured data.Installation
Configuration
Features
- Flexible schema
- Rich querying
- Aggregation pipelines
- Geospatial queries
- Sharding support
Upstash
Serverless Redis-compatible storage with REST API.Installation
Configuration
Features
- Edge-compatible
- HTTP-based
- No connection pooling needed
- Global replication
- Durable storage
DynamoDB
AWS fully managed NoSQL database.Installation
Configuration
Features
- Serverless scaling
- Single-digit millisecond latency
- Multi-region replication
- Point-in-time recovery
- On-demand pricing
Cloudflare D1
Serverless SQL database for Cloudflare Workers.Installation
Configuration
Features
- Cloudflare Workers native
- Edge deployment
- SQLite-compatible
- Read replication
- Zero configuration
Convex
Real-time backend with built-in reactivity.Installation
Configuration
Features
- Real-time subscriptions
- Reactive queries
- Built-in auth
- File storage
- Server functions
Choosing a Storage Backend
PostgreSQL
PostgreSQL
Best for: Production applications, complex queries, ACID transactionsUse when: You need relational data, strong consistency, and advanced SQL features
LibSQL/Turso
LibSQL/Turso
Best for: Edge deployments, low latency, embedded applicationsUse when: You’re deploying to the edge or need SQLite compatibility
MongoDB
MongoDB
Best for: Flexible schemas, document-oriented data, rapid iterationUse when: Your data model is evolving or you need rich document querying
Upstash
Upstash
Best for: Serverless, edge, caching, session storageUse when: You need HTTP-based storage without connection management
DynamoDB
DynamoDB
Best for: AWS deployments, high throughput, key-value accessUse when: You’re on AWS and need serverless scaling
Cloudflare D1
Cloudflare D1
Best for: Cloudflare Workers, edge computeUse when: You’re building on Cloudflare’s platform
Multi-Region Setup
Deploy storage across regions:PostgreSQL with Read Replicas
MongoDB with Sharding
Storage Migration
Migrate data between backends:Performance Optimization
Connection Pooling
Indexing Strategy
Create indexes on frequently queried fields:Query Optimization
Next Steps
Storage Overview
Learn about storage architecture
Vector Stores
Explore vector storage options