8000 Connection pool - Blocking operations · Issue #91 · mauricio/postgresql-async · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Dec 3, 2019. It is now read-only.
This repository was archived by the owner on Dec 3, 2019. It is now read-only.
Connection pool - Blocking operations #91
Open
@fwbrasil

Description

@fwbrasil

The connection pool performs block operations to acquire and test connections using the connection factory [1] [2] [3] [4]. This characteristic makes the pool really sensible to database issues, like high latency or connection errors.

The workaround for me was:

I think that an ideal solution should be avoid having blocking operations inside connection pools.

[1]


[2]
Await.result(item.sendQuery("SELECT 0"), configuration.testTimeout)

[3]
[4]

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

      0