Software /
code /
prosody
Diff
plugins/mod_storage_sql.lua @ 8409:e98b4352d7df
mod_storage_sql: Add indices that include the with and when columns of archives
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 21 Nov 2017 14:46:21 +0100 (2017-11-21) |
parent | 8293:34814a908557 |
child | 8410:54ff1f91e4db |
child | 8478:384658c7a26a |
line wrap: on
line diff
--- a/plugins/mod_storage_sql.lua Mon Nov 20 00:27:26 2017 +0100 +++ b/plugins/mod_storage_sql.lua Tue Nov 21 14:46:21 2017 +0100 @@ -452,6 +452,8 @@ Column { name="type", type="TEXT", nullable=false }; Column { name="value", type="MEDIUMTEXT", nullable=false }; Index { name="prosodyarchive_index", unique = true, "host", "user", "store", "key" }; + Index { name="prosodyarchive_with", "host", "user", "store", "with" }; + Index { name="prosodyarchive_when", "host", "user", "store", "when" }; }; engine:transaction(function() ProsodyArchiveTable:create(engine);