Files
wekan/docs/Databases/MongoDB/README.md
T
Lauri Ojansivu fea3c432e8 Organize docs/Databases: one directory per database.
It was a flat list where the database was a filename prefix, in three spellings
- MongoDB-Driver-System.md, mongodb-avx-qemu.md, MongoDB_OpLog_Enablement.md -
plus FerretDB2-PostgreSQL.md and a ToroDB-PostgreSQL directory. Somebody asking
"how do I run WeKan on PostgreSQL" had to read the prefixes to find out which
files were even about their database.

Now: Migrations, MongoDB, FerretDB (with 1 and 2, because v1 and v2 are
different products with different backends) and ToroDB (with PostgreSQL). Each
file keeps its name minus the redundant prefix - MongoDB/Driver-System.md,
MongoDB/avx-qemu.md - and the old PostgreSQL.md, which was an index of FerretDB
and ToroDB rather than a document about PostgreSQL, becomes the directory's
README.md.

Every directory has a README.md saying what is in it and where to go next,
including FerretDB/1, which had no documentation at all until now although it
is WeKan's default database and just gained four more backends. Links to a
directory point at the DIRECTORY, not at its README.md, because README.md is
what is opened by default.

Every link that pointed into the old paths is updated - in docs, in
docker-compose-ferretdb-v2-postgresql.yml, and in the wekan.fi website - and
the relative links inside the moved files, which gained a directory level and
so needed one more "../". tests/docsDatabases.test.cjs pins the layout, the
READMEs, the directory links, that every relative link resolves, and that
nothing outside CHANGELOG.md still names an old path.

Thanks to xet7 !
2026-07-28 01:05:27 +03:00

25 lines
1.5 KiB
Markdown

# MongoDB
WeKan's classic database. WeKan runs on MongoDB 3.0 … 8.0, and picks the Node
driver for the server it finds; [docker-compose-mongodb-v7.yml](https://github.com/wekan/wekan/blob/main/docker-compose-mongodb-v7.yml)
is the compose file for it. The default database of WeKan is
[FerretDB v1](../FerretDB/1) instead, which needs no database server.
| File | What it answers |
| --- | --- |
| [Driver-System.md](Driver-System.md) | Which Node driver is used for which server version, and how that is decided |
| [Version-Management.md](Version-Management.md) | Detecting the server version and switching to the matching binary + driver |
| [Compatibility-Guide.md](Compatibility-Guide.md) | What breaks between MongoDB 3.0 and 8.0 with Meteor, and the fixes |
| [Oplog-Configuration.md](Oplog-Configuration.md) | Why the OpLog matters for pub/sub, and how to turn it on |
| [OpLog-Enablement.md](OpLog-Enablement.md) | Whether it IS on, per deployment platform |
| [avx-qemu.md](avx-qemu.md) | Running MongoDB 5+ on a CPU with no AVX, through qemu-user |
| [raspi4-qemu.md](raspi4-qemu.md) | The same on a Raspberry Pi 4 and older (ARMv8.0, no ARMv8.2-A) |
Both qemu pages describe what WeKan's `cpu-exec` helper now does by itself: it
runs a binary under qemu-user when the CPU lacks the features that binary needs.
## See also
- [../FerretDB/1](../FerretDB/1) — the default database, and the four SQL backends behind it
- [../Migrations](../Migrations) — WeKan's own schema migrations