Skip to content

question: is it bad idea to keep connection open? #106

@eastwing27

Description

@eastwing27

ATM our DB has restricted mount of connections (20) but is going to be used intense by many users. |> Sql.connect seems to create new connection each time it;s used so we're risking to reach the limit at the moment we release the feature. Alternatively, we can open a connection by let connection = new NpgsqlConnection(getConnectionString) and keep it open, but is it a good idea? What will happen if users use the same connection?

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