mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-14 23:43:55 +01:00
Add index on label
This commit is contained in:
parent
acd16ad86a
commit
233b14ebe1
1 changed files with 3 additions and 1 deletions
|
@ -17,4 +17,6 @@ CREATE TABLE IF NOT EXISTS event_labels (
|
||||||
event_id TEXT,
|
event_id TEXT,
|
||||||
label TEXT,
|
label TEXT,
|
||||||
PRIMARY KEY(event_id, label)
|
PRIMARY KEY(event_id, label)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
CREATE INDEX event_labels_label_idx ON event_labels(label);
|
||||||
|
|
Loading…
Reference in a new issue