forked-synapse/synapse/storage/databases/main/schema/delta/16/events_order_index.sql
2020-08-05 21:38:57 +01:00

5 lines
174 B
SQL

CREATE INDEX events_order ON events (topological_ordering, stream_ordering);
CREATE INDEX events_order_room ON events (
room_id, topological_ordering, stream_ordering
);