diff options
author | Kim Alvefur <zash@zash.se> | 2019-03-22 17:32:56 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-03-22 17:32:56 +0100 |
commit | 63edbfd83c70ba630ef57153cb8665c80cd53fd7 (patch) | |
tree | 5e9e20f37ac12f136ff5d2fb151902a04d0ec8f3 /util/import.lua | |
parent | feb226825d1fc7d8f26d68011716f72bf8ff438a (diff) | |
download | prosody-63edbfd83c70ba630ef57153cb8665c80cd53fd7.tar.gz prosody-63edbfd83c70ba630ef57153cb8665c80cd53fd7.zip |
mod_mam: Perform message expiry based on building an index by date (backport of 39ee70fbb009 from trunk)
For each day, store a set of users that have new messages. To expire
messages, we collect the union of sets of users from dates that fall
outside the cleanup range.
The previous algoritm did not work well with many users, especially with
the default settings.
Diffstat (limited to 'util/import.lua')
0 files changed, 0 insertions, 0 deletions