You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add a voids_id column for tombstone events
This is our first attempt at supporting deletion. Clients send in an
event of type "dimo.tombstone" with a CloudEvent id in the data section.
That id gets placed in this new column.
We're adding a skipping index to event_type to make it cheaper to find
these events. There should not be many.
* Edit some comments and remove an unused helper
* A little note about voids_id not showing up in pq
ALTERTABLE cloud_event ADD COLUMN voids_id String DEFAULT '' COMMENT 'For dimo.tombstone events, the id of the event being tombstoned. Empty for all other event types.' AFTER data_index_key;
4
+
-- +goose StatementEnd
5
+
-- +goose StatementBegin
6
+
-- Make it cheap to find these events. This may also help with some attestation filtering.
7
+
ALTERTABLE cloud_event ADD INDEX idx_event_type event_type TYPE set(0) GRANULARITY 1;
8
+
-- +goose StatementEnd
9
+
-- +goose StatementBegin
10
+
-- Do this asynchronously.
11
+
ALTERTABLE cloud_event MATERIALIZE INDEX idx_event_type;
0 commit comments