Skip to content
Snippets Groups Projects
  1. Jan 25, 2022
  2. Jan 22, 2022
    • Lars Kruse's avatar
      fix(database): use the request-based database sessions provided by flask-sqlalchemy · a8934514
      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.
      a8934514
    • Lars Kruse's avatar
      Revert "refactor: use short-lived sessions when accessing the database" · 0a675430
      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 0b594e50 and 70ffd1a0.
      
      See: #93
      0a675430
  3. Jan 21, 2022
  4. Jan 18, 2022
  5. Jan 14, 2022
  6. Dec 13, 2021
  7. Dec 09, 2021
  8. Nov 30, 2021
  9. Nov 29, 2021
  10. Nov 23, 2021
  11. Nov 22, 2021
  12. Nov 19, 2021
Loading