Skip to content

refactor: Simplify database features to reduce complexity #28

@VikashKothary

Description

@VikashKothary

Combine PostgreSQL and MariaDB features

The code in the settings knows that the server can support both postgresql and mariadb. The same is true with the requirements.txt files.

We can reduce the complexity of the codebase by making the features database agnostic. The goal is to have a single database (most likely PostgreSQL) as the default database. But to allow users to switch in a MariaDB/MySQL database by modifying the config.

This is technically what the codebase is doing by it treats both databases as first-class citizens which is unnecessarily bloating the codebase.

Combine multiple databases

It might be worth combining the userdb and the maindb so the application only needs a single database by default.

It will probably be useful to support the existing environment variables for backward-compatibility. But my gut tells me it won't be used by most our users, so having a single database configuration should lower the barrier-to-entry for new users, thus improve the adoption of the server.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions