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), cross-adapter prepared statements (0.007ms reads), LRU statement cache. Ideal for edge and local dev.

Verified Performance (Cross-Adapter Prepared Statements)

Verified by the SveltyCMS Audit 2.0 engine — Intel Ultra 9 275HX, 24 cores, Bun 1.3.11. Cross-adapter prepared statements achieve 0.007ms raw reads, 14,000+ REST RPS. Run bun test tests/benchmarks/database-performance.test.ts 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%. Based on publicly available documentation and community reports, competitor CMS platforms may require separate round-trips for mutations or offer limited cross-DB transaction support compared to SveltyCMS's unified adapter layer.

0.040ms

TX Commit avg

0.035ms

TX Rollback avg

25,312

TX Commits / sec

Database Support: A Comparison

Strapi

Multiple DB support via ORM. Based on publicly available GitHub issue discussions and community reports (as of early 2026), complex nested queries can experience response times above 1 second in certain configurations.

Payload CMS

MongoDB + PostgreSQL only — no SQLite or MariaDB support as of June 2026. Community forum reports (as of early 2026) note load times of ~45 seconds for installations with approximately 400,000 files on certain hardware configurations.

Directus

SQL-only database support (no MongoDB). 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