[18.0][FIX] mass_mailing_list_dynamic: optimize sync operations#16
Conversation
pedrobaeza
left a comment
There was a problem hiding this comment.
Thanks for improving the performance. The only problem I see with this is that the recordset operations creates a new recordset, so they are not very good at performance. Alternatives are to store a set of IDs instead.
7f912e1 to
9ba49f6
Compare
Thanks for the pointer. However, these are the most impactful performance problems:
Removing those problems, the difference between in-memory recordsets or in-memory lists of IDs becomes irrelevant, while making the code easier to maintain. |
Now there is only 1 ORM operation per list and 1 global unlink of garbage contacts at the end. @moduon MT-13677
9ba49f6 to
06c2000
Compare
|
Hey, thanks for contributing! Proceeding to merge this for you. |
|
This PR has the |
|
Congratulations, your PR was merged at 71c5c12. Thanks a lot for contributing to OCA. ❤️ |
Now there is only 1 ORM operation per list and 1 global unlink of garbage
contacts at the end.
@moduon MT-13677