Mercurial > prosody-hg
diff plugins/mod_websocket.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 | 7bfc4269dc36 |
| children | b72d2f4153f7 4b3c129e96f2 |
