Files
wekan/docs/Databases/FerretDB
Lauri Ojansivu 3621413d6f Speed test: where the time goes when a WeKan board is opened, on FerretDB and on MongoDB.
app/board-open.cjs seeds a board of 200, 2000 or 5000 cards, opens it in Chromium and
records the wall clock to the first card and until the DDP WebSocket is quiet, what
crossed it, the Meteor server's CPU by who spends it (Node inspector) and FerretDB's
CPU (pprof). Two runs on each database: the Meteor server's CPU is the same on both
(0.1-0.5 s) and the DDP server is 1% of it; a 5000-card board takes FerretDB (SQLite)
400-600 ms longer to open, the data sent to the browser being the same ~210 KB, a
small board 70-100 ms. FerretDB uses about 4 s of CPU for the 5000-card open: SQLite
39%, filtering in Go 34%, find/getMore/aggregate 0.7-0.8 s each. The README says what
was measured and what was not: the development build, one machine, the browser's own
time not separated, and the aggregate's source not identified.

Thanks to Raymond-Voogt and xet7 !
2026-11-04 01:21:16 +02:00
..

FerretDB

FerretDB speaks the MongoDB wire protocol and stores the data in something else, so WeKan runs unchanged on top of it — WeKan only ever connects to mongodb://ferretdb:27017/wekan?directConnection=true and knows nothing about what is behind it. The directConnection=true is required, not decoration: without it the driver follows FerretDB's replica-set handshake to the wildcard address FerretDB listens on and the stack cannot start (#6582, explained in 1/README.md).

There are two versions, and they are different products:

Directory Version Stores into
1 FerretDB v1, the wekan/FerretDB fork — WeKan's default database SQLite (embedded), PostgreSQL, MySQL, MariaDB, SAP HANA
2 FerretDB 2, upstream PostgreSQL with the DocumentDB extension, only

Upstream dropped every backend except PostgreSQL in v2. The fork keeps v1 alive because the embedded SQLite backend is what makes a WeKan install self-contained — no database server at all — and because it is the database WeKan ships for the platforms MongoDB has no server build for: ppc64le, s390x and riscv64.

See also

  • ../MongoDB — the classic database, if you prefer MongoDB itself
  • wekan/FerretDB — the fork, its releases and its CHANGELOG