Skip to content

Could we define a deterministic tie-breaker for each sortable resource type? #249

@oej

Description

@oej

Could we define a deterministic tie-breaker for each sortable resource type?

The addition of sortField is helpful, but fields like createdDate, releaseDate, version, and name are not guaranteed to be unique. Without a stable tie-breaker, cursor pagination can still produce duplicate or missing results when multiple records share the same sort value.

A simple rule could be:

Results MUST be ordered by the selected sortField, then by UUID as a deterministic tie-breaker.

This would make token pagination more reliable and easier to implement consistently.

Originally posted by @Mehrn0ush in #231 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions