Skip to content

Database should only initialize connection once accessed #2

@mallocator

Description

@mallocator

Since the database is being used in modules where the database is optional, these should not establish a connection just because it is defined in the modules configs. Instead it should only be established once code actually retrieves an instance.

You could even go one step further and only initialize once a first request has been made, but this might impact server startup responsiveness. This could be mitigated with a "initializeAtStartup" option, but requires some additional thought.

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