# HG changeset patch # User Kim Alvefur # Date 1513039209 -3600 # Node ID 384658c7a26a42e5a06abe2423ab1f7131b26104 # Parent 597c23e1c38ec41e0b5d66d21613af5d19f63379 mod_storage_sql: Index over contact and timestamp (happy now Ge0rg?) diff -r 597c23e1c38e -r 384658c7a26a plugins/mod_storage_sql.lua --- 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()