Software /
code /
prosody
Comparison
plugins/mod_storage_sql.lua @ 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 |
parent | 8409:e98b4352d7df |
child | 8480:3d3706147174 |
comparison
equal
deleted
inserted
replaced
8477:597c23e1c38e | 8478:384658c7a26a |
---|---|
450 Column { name="when", type="INTEGER", nullable=false }; -- timestamp | 450 Column { name="when", type="INTEGER", nullable=false }; -- timestamp |
451 Column { name="with", type="TEXT", nullable=false }; -- related id | 451 Column { name="with", type="TEXT", nullable=false }; -- related id |
452 Column { name="type", type="TEXT", nullable=false }; | 452 Column { name="type", type="TEXT", nullable=false }; |
453 Column { name="value", type="MEDIUMTEXT", nullable=false }; | 453 Column { name="value", type="MEDIUMTEXT", nullable=false }; |
454 Index { name="prosodyarchive_index", unique = true, "host", "user", "store", "key" }; | 454 Index { name="prosodyarchive_index", unique = true, "host", "user", "store", "key" }; |
455 Index { name="prosodyarchive_with", "host", "user", "store", "with" }; | 455 Index { name="prosodyarchive_with_when", "host", "user", "store", "with", "when" }; |
456 Index { name="prosodyarchive_when", "host", "user", "store", "when" }; | 456 Index { name="prosodyarchive_when", "host", "user", "store", "when" }; |
457 }; | 457 }; |
458 engine:transaction(function() | 458 engine:transaction(function() |
459 ProsodyArchiveTable:create(engine); | 459 ProsodyArchiveTable:create(engine); |
460 end); | 460 end); |