Mercurial > prosody-hg
comparison plugins/mod_c2s.lua @ 9879:ddc07fb8dcd4 0.11
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.
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Fri, 22 Mar 2019 17:32:56 +0100 |
| parents | 6e4fbd12c11c |
| children | a74d78f79b23 62d8689beafb |
comparison
equal
deleted
inserted
replaced
| 9856:4be2af104bf0 | 9879:ddc07fb8dcd4 |
|---|
