-
Notifications
You must be signed in to change notification settings - Fork 231
Feat: Events Frontend, Redux #1859
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -0,0 +1,9 @@ | |||
-- +goose Up | |||
-- +goose StatementBegin | |||
CREATE INDEX v1_events_olap_scope_idx ON v1_events_olap (tenant_id, scope, seen_at DESC) WHERE scope IS NOT NULL; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
partial index to enable filtering by scope + seen at. one note here is we can't create this index concurrently unless we loop over all the partitions, but I figured this was probably fine
|
||
-- name: ListEvents :many | ||
WITH included_events AS ( | ||
SELECT DISTINCT e.* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems alright to try this for now
sc.cancelled_count, | ||
sc.failed_count | ||
-- name: ListEventKeys :many | ||
SELECT DISTINCT key |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah it's probably alright. We used to have an event key table and use a cached update on it, but we can always do something fancier when we hit problems here
Description
Adding back the events frontend + V1-ifying it with some new queries for fetching + filtering events, keys, etc.
TODO:
Type of change