Skip to content
Snippets Groups Projects
  1. Feb 04, 2022
  2. Feb 01, 2022
  3. Jan 31, 2022
  4. Jan 25, 2022
  5. Jan 21, 2022
  6. Jan 18, 2022
  7. Jan 12, 2022
  8. Jan 06, 2022
  9. Jan 04, 2022
  10. Dec 22, 2021
  11. Dec 16, 2021
  12. Dec 15, 2021
  13. Dec 13, 2021
    • vlorentz's avatar
      postgresql: Fix one-by-one error in db_to_date on negative dates · fb1b3a06
      vlorentz authored
      Using `int()` on `date.timestamp()` rounded it up (toward zero),
      but the semantics of `model.Timestamp` is that the actual time is
      `ts.seconds + ts.microseconds/1000000`, so all negative dates were
      shifted one second up.
      
      In particular, this causes dates from
      `1969-12-31T23:59:59.000001` to `1969-12-31T23:59:59.999999`
      (inclusive) to smash into dates from
      `1970-01-01T00:00:00.000001` to `1970-01-01T00:00:00.999999`,
      which is how I discovered the issue.
      fb1b3a06
  14. Dec 09, 2021
  15. Dec 08, 2021
  16. Dec 07, 2021
  17. Nov 09, 2021
  18. Oct 28, 2021
    • Antoine Lambert's avatar
      interface: Add origin_snapshot_get_all method · a5bfe5b5
      Antoine Lambert authored
      It enables to return in an efficient way the list of unique snapshot
      identifiers resulting from the visits of an origin.
      
      Previously it was required to query all visits of an origin then query
      all visit statuses for each visit to extract such information.
      
      Introduced method enables to extract origin snaphots information in
      a single datase query.
      
      Related to T3631
  19. Oct 22, 2021
  20. Oct 21, 2021
  21. Oct 18, 2021
  22. Oct 11, 2021
  23. Oct 08, 2021
    • Nicolas Dandrimont's avatar
    • Nicolas Dandrimont's avatar
      buffer: add a threshold for the estimated size of revision and release batches · b6040142
      Nicolas Dandrimont authored
      The size of individual revisions and releases is essentially unbounded.
      This means that, when the buffer storage is used as a way of limiting
      memory use for an ingestion process, it is still possible to go beyond
      the expected memory use when adding a batch of revisions or releases
      with large messages or other metadata.
      
      The duration of the database operations for revision_add or release_add is also
      commensurate to the size of the objects added in a batch, so
      using the buffer proxy to limit the time individual database operations
      takes was not effective.
      
      Adding a threshold on estimated sizes for batches of revision and
      release objects makes this overuse of memory and of database transaction
      time much less likely.
      b6040142
    • Nicolas Dandrimont's avatar
      buffer: add a threshold for the number of revision parents in one batch · 7c5b0ec1
      Nicolas Dandrimont authored
      The size of individual revisions is essentially unbounded. This means
      that, when the buffer storage is used as a way of limiting memory use
      for an ingestion process, it is still possible to go beyond the expected
      memory use when adding a batch of revisions with extensive histories.
      
      The duration of the database operation for revision_add is also
      commensurate to the number of revision parents added in a batch, so
      using the buffer proxy to limit the time individual database operations
      takes was not effective.
      
      Adding a threshold on cumulated number of revision parents per batch
      makes this overuse of memory and of database transaction time much less
      likely.
      7c5b0ec1
    • Nicolas Dandrimont's avatar
      buffer: add a threshold for the number of directory entries in one batch · 5edc0ba7
      Nicolas Dandrimont authored
      The size of individual directories is essentially unbounded. This means
      that, when the buffer storage is used as a way of limiting memory use
      for an ingestion process, it is still possible to go beyond the expected
      memory use when adding a batch of (very) large directories.
      
      The duration of the database operation for directory_add is also
      commensurate to the number of directory entries added in a batch, so
      using the buffer proxy to limit the time individual database operations
      takes was not effective.
      
      Adding a threshold on cumulated number of directory entries per batch
      makes this overuse of memory and of database transaction time much less
      likely.
      5edc0ba7
Loading