Commit Graph

4 Commits (5f723b210627f88160c0eee696d815f0b44a6ff5)

Author SHA1 Message Date
Laurent Mignon (ACSONE) 31c074cdc3 [IMP] base_exception: Improves performances
Don't call the ORM to filter current recordset. Replace call to the orm by a call to the filtered_domain method.
2023-07-05 10:01:19 +02:00
Laurent Mignon (ACSONE) 254c5684e3 [IMP] base_exception: Improves performances
Keeps rule information into cache to avoid to always call the ORM for static informations. This is change allows a boost into the evaluation of exception rules by avoiding useless SQL queries to retrieve rules definitions
2023-07-05 10:01:19 +02:00
Laurent Mignon (ACSONE) b5099bc51e [IMP] base_exception: Improves performances
Before this change, the inverse relation from the exception to the records linked to the exception was read to determine if the rule should be added or removed from the rule detected for the current records. On large database with non blocking exceptions this lead to a performance issues since this issues a read of all the SO where the exception has been applied. With this change, we only read the information from the current records
2023-07-04 15:36:50 +02:00
Laurent Mignon (ACSONE) 7ceadd9fc6 [IMP] base_exception: One model per python file 2023-07-04 15:36:50 +02:00