Community Health Toolkit

Can I use any other database than Couchdb?

For webapp, Can I configure it to use any other databases than Couchdb ? If yes, how do I configure it ?

1 Like

The codebase heavily relies on the CouchDB API so it wouldn’t be possible to configure it to use another API. There are other implementations of the CouchDB API but these not recommended for use in production environments. So no, it is not possible to configure the CHT to use a database other than CouchDB.

Furthermore it would be very difficult to provide offline first functionality in the browser with any other database, which is discussed more in this blog post.

We support migrating data from CouchDB to Postgres using the couch2pg service to allow easier and quicker querying.

1 Like