Skip to content

Don't create database connection over and over. #1

@kumpelblase2

Description

@kumpelblase2

Well, always reconnecting to a database is not really good. This doesn't only slow down things but also isn't really convenient. Instead use one instance of the connection and only if it times out, reconnect. I haven't looked at your code that much but putting updating statements in a async task will also increase performance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions