Skip to content
Snippets Groups Projects
  1. Feb 17, 2022
  2. Feb 11, 2022
  3. Feb 10, 2022
  4. Feb 09, 2022
  5. Jan 28, 2022
  6. Jan 27, 2022
  7. 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
  8. Jan 21, 2022
  9. Jan 14, 2022
  10. Dec 13, 2021
  11. Nov 23, 2021
  12. Nov 22, 2021
  13. Jul 29, 2021
  14. Jul 13, 2021
Loading