Skip to content
Snippets Groups Projects
  1. Mar 31, 2025
  2. Mar 28, 2025
  3. Mar 27, 2025
  4. Mar 26, 2025
  5. Mar 24, 2025
  6. 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
  7. Mar 19, 2025
  8. Mar 18, 2025
  9. Mar 17, 2025
  10. Mar 13, 2025
  11. Feb 25, 2025
  12. Feb 20, 2025
  13. Feb 19, 2025
  14. Feb 18, 2025
  15. Feb 17, 2025
  16. Feb 13, 2025
  17. 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.
  18. Jan 14, 2025
  19. Dec 16, 2024
  20. Dec 11, 2024
  21. Nov 27, 2024
  22. Nov 26, 2024
Loading