Skip to content
Snippets Groups Projects
  • Nicolas Werner's avatar
    e6fcccc8
    Don't store pending receipts in cache · e6fcccc8
    Nicolas Werner authored
    We don't get notified for every message. Sometimes we only get a read
    receipt for the newest message, which means old read receipts accumulate
    in the database. This least to some considerable CPU overhead, when
    checking if the timeline should be notified for new read receipts.
    Instead just always notify, since that has far less overhead in the
    worst case and doesn't need complicated cache cleanup.
    
    The old pending_receipts db is not removed for now. It should still have
    minimal storage overhead and we don't have a good mechanism for cache
    format upgrades atm.
    e6fcccc8
    History
    Don't store pending receipts in cache
    Nicolas Werner authored
    We don't get notified for every message. Sometimes we only get a read
    receipt for the newest message, which means old read receipts accumulate
    in the database. This least to some considerable CPU overhead, when
    checking if the timeline should be notified for new read receipts.
    Instead just always notify, since that has far less overhead in the
    worst case and doesn't need complicated cache cleanup.
    
    The old pending_receipts db is not removed for now. It should still have
    minimal storage overhead and we don't have a good mechanism for cache
    format upgrades atm.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.