Skip to content

How I can have two different connection pools for two different databases? #975

@alekbarszczewski

Description

@alekbarszczewski

It is possible to set pool size in pg.defaults. However let's say I have two databases and two separate connection strings for them:

postgres://localhost/db1
postgres://localhost/db2

And I want to have two different pool sizes for each of them. For example max 20 connections for db1 and max 100 connections for db2. How I can do that? Changing pool size in pg.defaults will set it globally...

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