Skip to content

Use start and end date on PreservationAuditRunner Loaders instead of index offset #7005

@hackartisan

Description

@hackartisan

Summary or User Story

with the offset, the jobs run fast at first but get slower the further into the index postgres has to load.

If we instead use a range on created_at postgres will be able to pull the records by navigating the index directly; it'll be much faster. maybe a week at a time? The number of records loaded at once will be uneven, but probably won't get too big. We could still loop over them and only load 1000 into redis at once.

Acceptance Criteria

  • loaders enqueue preservation check jobs based on a time frame, not an offset

First step

update the query this job uses

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions