Skip to content

Custom scan of all streams, mt_streams and seq_id #5071

Closed

Description

@Mastahh

Hello,

We are using Marten in one of our new project.
And we are using Marten to store events from RabbitMQ messages which our system needs.
And later we transform these events into our domain format events.

And we have issue that sometimes events stored not in sequence and we need go back and process some events that were skipped.
Also we need to have ability to scan all events and reprocess events or find gaps.

So the simplest way would be to read data from mt_streams, but we need to have ability read page by page what is not possible with mt_stream.
So we are using mt_events which have seq_id and very easy to read batches.
But problem that we need also get latest version which is stored in mt_streams, what adds additional performance issuer.

Do you have plan to add seq_id to mt_streams?

Activity

  1. jeremydmiller commented on Jul 29, 2026

    @jeremydmiller
    Member

    Hey, can you please prefer Discord or Discussions here for questions?

    And I'd simply point you at the formal subscription support rather than suggest any direct table access.

  2. locked and limited conversation to collaborators on Jul 29, 2026
  3. converted this issue into a discussion #5072 on Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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