mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-24 08:19:25 -05:00
Add indices to state group tables
This commit is contained in:
parent
e632fcd933
commit
58c0ef90c9
@ -31,3 +31,16 @@ CREATE TABLE IF NOT EXISTS event_to_state_groups(
|
|||||||
event_id TEXT NOT NULL,
|
event_id TEXT NOT NULL,
|
||||||
state_group INTEGER NOT NULL
|
state_group INTEGER NOT NULL
|
||||||
);
|
);
|
||||||
|
|
||||||
|
CREATE INDEX IF NOT EXISTS state_groups_id ON state_groups(id);
|
||||||
|
|
||||||
|
CREATE INDEX IF NOT EXISTS state_groups_state_id ON state_groups_state(
|
||||||
|
state_group
|
||||||
|
);
|
||||||
|
CREATE INDEX IF NOT EXISTS state_groups_state_tuple ON state_groups_state(
|
||||||
|
room_id, type, state_key
|
||||||
|
);
|
||||||
|
|
||||||
|
CREATE INDEX IF NOT EXISTS event_to_state_groups_id ON event_to_state_groups(
|
||||||
|
event_id
|
||||||
|
);
|
Loading…
Reference in New Issue
Block a user