-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] mass_mailing; speed up kanban view
The kanban view displays mailing statistics for all mailings that are sending or done. To compute these statistics, it uses the `total` as the expected number of emails to send. This `total` used to be computed as the number of records matching the mailing filter. This is both slow (filters are seldom written in an optimized way), and incorrect because the recipients were frozen when the email was sent. The number of matching records may have changed since then. To fix both problems, introduce a new `expected` computed field that simply returns the number of emails that were put in queue at the time of sending, and thus represent the real number of expected emails. This field is computed along with the rest of the statistics.
- Loading branch information
Showing
2 changed files
with
5 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters