Skip to content

reduce min connection to 1 #219

@vincentsarago

Description

@vincentsarago

By default stac-fastapi-pgstac has db_min_conn_size set to 10. When we launch the application we create 2 pools (read / write) so with a min conn size of 10 meaning 20 connections for one application.

This can grow a lot if you have Uvicorn serving multiple stac-fastapi-pgstac application in threads 😅

db_min_conn_size: int = 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions