Skip to content

Switch logs paging to keyset pagination #84

@trieloff

Description

@trieloff

Problem
Logs pagination uses OFFSET, which becomes slower as offsets grow and can skip/duplicate rows as new data arrives.

Proposed change

  • Replace OFFSET pagination with keyset pagination using timestamp (and a tie-breaker if needed).
  • Persist the last-seen cursor and request the next page using WHERE timestamp < :cursor.

Acceptance criteria

  • Large paginations remain performant.
  • No duplicates or gaps when new data arrives during paging.

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