Skip to content

Create the mysql-connector only when needed #181

@Masclins

Description

@Masclins

Description of the current behaviour
Since mysql-connector expires after a while, on v0.2.1 we changed from making the connection only when the server was up, to connecting for every single call to backend.
That implies we are opening and closing connections when not needed, since the connection wouldn't have expired.

Description of the behaviour you'd like
Create a connection when required, and only reconnect if it has expired.
That would probably save a lot of execution time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    1 - Minor2 - ShortIt's probably not too time-consuming

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions