Skip to content
Snippets Groups Projects
  1. Mar 09, 2022
  2. Feb 25, 2022
  3. Feb 11, 2022
  4. Feb 10, 2022
  5. Feb 09, 2022
  6. Jan 28, 2022
  7. Jan 27, 2022
  8. Jan 25, 2022
  9. Jan 22, 2022
    • Lars Kruse's avatar
      fix(database): use the request-based database sessions provided by flask-sqlalchemy · 10ce500d
      Lars Kruse authored
      Currently the database session is created during application startup and
      is used in all threads.  This is problematic, since the session is not
      thread-safe.
      Now we use the request-based database session provided by
      flask-sqlachemy instead.
      
      But this does not really solve the problem of using the same session in
      different threads, since the threads are started within a request.
      10ce500d
    • Lars Kruse's avatar
      Revert "refactor: use short-lived sessions when accessing the database" · 7a6b265d
      Lars Kruse authored
      The introduction of short-lived sessions caused issues with functions,
      which return database objects.  Such objects are not accessible (due to
      lazy loading), after the session is closed.
      
      Instead we should either move the session scope the respective callers
      or use a request-based session handling (e.g. the one provided by
      flask-sqlalchemy).
      
      This reverts commit 38fd7512 and b85aa202.
      
      See: #93
      7a6b265d
  10. Jan 21, 2022
Loading