Add stanza_id index also when we create the DB

This commit is contained in:
Philipp Hörist 2018-04-23 00:10:35 +02:00
parent 8306f076b3
commit 3efa731fbf
1 changed files with 3 additions and 0 deletions

View File

@ -187,6 +187,9 @@ class Logger:
);
CREATE INDEX idx_logs_jid_id_time ON logs (jid_id, time DESC);
CREATE INDEX idx_logs_stanza_id ON logs (stanza_id);
'''
)