True Database Agnostic

Native, production-ready support for MongoDB, PostgreSQL, MariaDB, and SQLite via Drizzle ORM.

All four database adapters are production-ready with verified benchmark suites. Switch databases by changing one config variable — zero application code changes required.

Four Databases. One Config Variable.

Start with SQLite for edge/local dev, scale to MongoDB or PostgreSQL for production — no code changes.

MongoDB

✅ Production

Wire-level zstd/snappy compression, optimised connection pooling, flexible schemas.

PostgreSQL

✅ Production

Native JSONB + GIN indexing. Geographic read-replica routing via x-svelty-region header.

MariaDB

✅ Production

Relational integrity, TTL-based self-cleanup. Active driver validation eliminates false positives.

SQLite

✅ Production

7 PRAGMAs (WAL, mmap=256MB, cache=64MB), LRU statement cache. Ideal for edge and local dev.

Verified Performance (SQLite Adapter)

Verified by the SveltyCMS Audit 2.0 engine — Intel Ultra 9 275HX, 24 cores, Bun 1.3.11. Run bun run benchmark --db sqlite to reproduce.

OperationAvg Latencyp95RPS
INSERT0.086 ms0.100 ms11,660
FIND ONE0.055 ms0.064 ms18,218
FIND MANY (50)0.104 ms0.116 ms9,617
UPDATE0.104 ms0.125 ms9,619
TX Commit0.040 ms0.060 ms25,312

Unified ACID Transaction Engine

Same API surface across all 4 adapters

Single-trip mutations eliminate redundant SELECT queries, reducing mutation latency by ~40%. Competitors require separate round-trips or lack cross-DB transaction support entirely.

0.040ms

TX Commit avg

0.035ms

TX Rollback avg

25,312

TX Commits / sec

Why Others Fall Short

Strapi

Multiple DB support via ORM, but N+1 query problems and >1-second response times under complex nested queries are well-documented.

Payload CMS

MongoDB + PostgreSQL only — no SQLite or MariaDB. 45-second load times reported for 400k files. Performance requires significant manual tuning.

Directus

SQL-only (no MongoDB). Complex permission queries generate 4,000+ line SQL WHERE clauses. No unified transaction API across adapters.

SveltyCMS

All 4 adapters production-verified with the same benchmark suite. Start on SQLite for edge, scale to MongoDB — zero code changes, same ACID transaction API throughout.

Read Full Documentation