Skip to content
Snippets Groups Projects
  1. Mar 21, 2025
    • vlorentz's avatar
    • Pierre-Yves David's avatar
      Migrating to psycopg3 · 15f34e0a
      Pierre-Yves David authored
      This will need coordination with other MR migrating other part of swh to
      psycopg3, more notably, swh-core.
      
      Updates various imports and names.
      
      Adjusts syntax query and parameter to what psycopg3 expect. The `origins_are_blocked` of the Blocking proxy class needed significant rework for equivalent features.
      
      Dropped timezone related work around that existed for psycopg2 < 2.9.0
      
      Adjust the way we retrieve the connection information. This update as the same caveas as for swh-core and needs some double check.
      
      Use the dedicated `psycopg_pool` package for connection pull.
      
      Adds a small `execute_values_generator` helper to match existing code
      expectation better (reducing the complexity of this diff).
      
      Drops a call to the deprecated and noop `app.setup_psycopg_errorhandlers`
      
      Add more type to help mypy and catch errors.
      15f34e0a
  2. Mar 19, 2025
  3. Mar 18, 2025
  4. Mar 17, 2025
  5. Mar 13, 2025
  6. Feb 25, 2025
  7. Feb 20, 2025
  8. Feb 19, 2025
  9. Feb 18, 2025
  10. Feb 17, 2025
  11. Feb 13, 2025
  12. Feb 05, 2025
    • Antoine Lambert's avatar
      cassandra: Improve snapshot_count_branches performance · 87ae723c
      Antoine Lambert authored
      It has been observed calling that method can lead to cassandra
      query timeout when a snapshot contains a large amount of branches.
      
      The performance bottleneck seems to be the use of a custom cassandra
      aggregate function computing the number of branches per target type.
      
      Removing the use of that function and performing the aggregation
      client side significantly improves query performance and makes
      the timeout issue goes away.
      
      Fixes #4719.
      v2.9.1
      87ae723c
  13. Jan 14, 2025
  14. Dec 16, 2024
  15. Dec 11, 2024
  16. Nov 27, 2024
  17. Nov 26, 2024
  18. Nov 08, 2024
  19. Nov 05, 2024
    • vlorentz's avatar
      tests: Fix incorrect swh_storage fixture setups · 9d9d44c7
      vlorentz authored
      The storage returned by swh_storage() must be either the same as swh_storage_backend(), or
      be a chain of proxies to it. This allows tests to act on the backend using methods
      not available on proxies or the RPC
      9d9d44c7
  20. Oct 31, 2024
  21. Oct 30, 2024
  22. Oct 11, 2024
  23. Sep 25, 2024
  24. Aug 27, 2024
  25. Aug 09, 2024
Loading