fix: resolve issues #73, #75, #79 (indexes, notifications, event filtering) - #127
Merged
Merged
Conversation
- XStreamRollz#73: add composite indexes on streams(user_id, status), stream_events(stream_id, created_at DESC), and users(email) - XStreamRollz#75: add notifications table with user_id FK, JSONB payload, read_at, and partial index for unread-count queries - XStreamRollz#79: add EventFilter class in pipeline/ with hot-reloadable per-stream block-list; wire into worker poll loop
Xhristin3
approved these changes
May 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes three open issues assigned to @solomon35-stack.
#73 — Add indexes for common query patterns
idx_streams_user_id_statusonstreams(user_id, status)for dashboard queriesidx_stream_events_stream_id_occurred_atonstream_events(stream_id, created_at DESC)for history queriesidx_users_emailunique index onusers(email)for auth lookupsDROP INDEXstatements noted in schema comments#75 — Add
notificationstableid,user_id(FK → users),type,payload(JSONB),read_at,created_atidx_notifications_user_idfor general user lookupsidx_notifications_unreadpartial index (WHERE read_at IS NULL) for unread-count queriesDROP TABLE notificationsnoted in schema comments#79 — Configurable event filtering
EventFilterclass inxstreamroll-processing/src/pipeline/setConfig(streamId, config)setConfigat any time without restarting the workerTesting
tsc --noEmit)Closes #73, #75, #79