Software /
code /
prosody
Changeset
8478:384658c7a26a
mod_storage_sql: Index over contact and timestamp (happy now Ge0rg?)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 12 Dec 2017 01:40:09 +0100 |
parents | 8477:597c23e1c38e |
children | 8479:867679b0fb03 |
files | plugins/mod_storage_sql.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_storage_sql.lua Sun Dec 10 22:23:32 2017 +0100 +++ b/plugins/mod_storage_sql.lua Tue Dec 12 01:40:09 2017 +0100 @@ -452,7 +452,7 @@ 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_with_when", "host", "user", "store", "with", "when" }; Index { name="prosodyarchive_when", "host", "user", "store", "when" }; }; engine:transaction(function()