Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • engine engine
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 27
    • Issues 27
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • AURAAURA
  • engineengine
  • Merge requests
  • !9

refactor: use short-lived sessions when accessing the database

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Lars Kruse requested to merge sumpfralle/aura-engine:lars-short-db-sessions into master Nov 23, 2021
  • Overview 0
  • Commits 1
  • Pipelines 1
  • Changes 2

Previously the database connection ("DB.session") was established during the startup of Aura Engine. This was causing conflicts in the threaded execution environment (#75 (closed)). Now all sessions are acquired in a short-lived context:

with DB.Session() as session: ...

If database query performance is a real concern, then the session contexts could be moved to a higher level.

Closes: #75 (closed)

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: lars-short-db-sessions