#1368 Archive cleanup doubles number of storage access
Reporter
Zash
Owner
Zash
Created
Updated
Stars
★ (1)
Tags
Milestone-0.11
Priority-Medium
Type-Defect
Status-Fixed
Performance
Zash
on
The new archive expiry code records each unique username and date pair, each time a new message is added to the archive. Since the date only changes once per day, a lot of redundant writes are performed for data that is already there.
The new archive expiry code records each unique username and date pair, each time a new message is added to the archive. Since the date only changes once per day, a lot of redundant writes are performed for data that is already there.
A cache added in https://hg.prosody.im/trunk/rev/79ba2d709e72 for mod_mam and https://hg.prosody.im/trunk/rev/2c8f674b9243 for mod_muc_mam This should reduce most redundant writes to the cleanup map store
Changes