Skip to content

get_db_session should not start a new engine for each request #100

Open
@ninabernick

Description

@ninabernick

In the SQLAlchemy docs, it states that an engine is typically created once and held for the lifetime of an app. We should probably be initializing it on startup, not creating a new one on each request. We may even be calling this once for each level of a GQL request (to investigate)

Metadata

Metadata

Assignees

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