Skip to content

Make sure if a DB Session got created for a request, it stays unique per request #19513

@6543

Description

@6543

to prevent deadlocks, etc...:

  • use context for all function calling package model and model itself
  • add func that can extract an open session from context if there is one or open a new one
  • be able to make sure, if db.TxContext() was already opened, a function within the stack does not open a second one again

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/summaryThis issue aggregates a bunch of other issues

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions