Skip to content

Investigate pool_recycle=60 setting potentially causing unnecessary connection overhead #398

@SSpirate11

Description

@SSpirate11

Description

The database connection pool is configured with pool_recycle=60 (60 seconds) in montage/app.py, which causes SQLAlchemy to recycle database connections every minute. This may be creating unnecessary overhead by constantly recreating connections.

# Line 75
engine = create_engine(config.get('db_url', DEFAULT_DB_URL), pool_recycle=60)

# Line 126
engine = create_engine(db_url, pool_recycle=60)

Is there a specific reason for this recycle period (60s)?

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