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 | 5c3633477b19bd47accb2d3e258619d69ee58963 (patch) | |
tree | 5e9e20f37ac12f136ff5d2fb151902a04d0ec8f3 /util/filters.lua | |
parent | fffb4ee43d2ce3c0dd392f44eac53529688938ac (diff) | |
download | prosody-5c3633477b19bd47accb2d3e258619d69ee58963.tar.gz prosody-5c3633477b19bd47accb2d3e258619d69ee58963.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/filters.lua')
0 files changed, 0 insertions, 0 deletions