Improve perf of held message handling.
commit7a609b4a48824a5e6c834702db13823a5648d3c8
authorAbhilash Raj <maxking@asynchronous.in>
Wed, 14 Dec 2022 10:28:52 +0000 (14 10:28 +0000)
committerAbhilash Raj <maxking@asynchronous.in>
Wed, 14 Dec 2022 10:28:52 +0000 (14 10:28 +0000)
tree97de6a72022eafdfde305e6cad91977e28e4746d
parentb8d8dd5dcedc38c1c596f52deb25729f2aaee665
Improve perf of held message handling.

This commit reduces the total no. of database calls that would
be required to handle a held message by at least an order of
magnitude and possibly lower in many cases. This should
significantly improve the latency of handling held messages.

Fixes #1045, #1026
src/mailman/app/moderator.py
src/mailman/app/tests/test_moderation.py
src/mailman/chains/hold.py
src/mailman/docs/NEWS.rst
src/mailman/model/pending.py