{"push_id":2359291221,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"f727e9d9b6a2029b8625ecff229ccd742598322b","before":"2966d4faedb2817039ed608dff48acfda418109e","commits":[{"sha":"f727e9d9b6a2029b8625ecff229ccd742598322b","author":{"name":"Thibault Delavallée","email":"5d1eab799c8290aa8801a3f054f327aa6b9c066c@odoo.com"},"message":"[REF] rating: avoid storing rating_value on mail.message\n\nCurrently the rating value coming from the rating application is stored\non the message it belongs to. However storing it is not necessary as\nthere is no direct search using it. Having a computed field is sufficient\nfor all use cases we currently have in Odoo.\n\nRemoving the store allow to gain queries. Indeed the field is not\ncomputed anymore after each message creation meaning we save queries\nby not having to check existing ratings. It allows to gain a lot of\ncomputation as mail.message is a critical model.\n\nOn the whole community runbot when installing all modules this leads to\na gain of more than 14K queries on 585K which means 2.4% of performances\nincrease. Considering the code size of this optimization this is quite an\ninteresting result.\n\nLooking at test_mail performance tests we gain several queries (2/3) for\neach new message which is coherent with the model change.\n\nFinally it allows to lessen the performance difference between tests done\nwith test mail only and tests done with other modules already installed.\nThis is especially simple mail thread-enable records.\n\nRelated to task ID 51523. #Closes #23294. Done with blessing of @jem-odoo .","distinct":true,"url":"https://api.github.com/repos/odoo/odoo/commits/f727e9d9b6a2029b8625ecff229ccd742598322b"}]}
{"actor":{"display_login":"tde-banana-odoo"}}