Skip to content

Add index for category, stream, sequence_number#89

Merged
davie merged 2 commits intomainfrom
add-category-stream-sequence-number-index
Feb 7, 2026
Merged

Add index for category, stream, sequence_number#89
davie merged 2 commits intomainfrom
add-category-stream-sequence-number-index

Conversation

@davie
Copy link
Contributor

@davie davie commented Jan 26, 2026

The read_last_query was changed to order by sequence_number way back in 750fdb0 , but no index added.
Without this we see significant performance degradation.
Under load we were seeing this query take over a second to run without the index.

davie added 2 commits January 26, 2026 11:00
The read_last_query was changed to order by sequence_number way back in 750fdb0, but no index added.
Without this we see significant performance degradation
@davie davie merged commit dd3949e into main Feb 7, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants