Skip to content

Pagination on event table with dynamo DB doesn't keep the sort order. #128

Open
@bbouchard31

Description

@bbouchard31

Hi,

I'm trying to paginate over the event table by giving a limit and a skip value to the getEvents method.
I'm using dynamoDB and my issue is that the order of the events is totally random because of the dynamoDB scan.
So there is no way for me to rebuild my state without doing snapshots.
Is there a way to keep the order when paginating over all the events of a specific aggregate?

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