Skip to content
  • oco-odoo's avatar
    [IMP] account: introduce slicing mechanism when running reconciliation models · 54faf2b2
    oco-odoo authored
    
    
    On big databases, it is possible that some setups will create huge queries when trying to apply reconciliation models. In such cases, the query might take a very long time to run, essentially eating up all the available CPU, and proof impossible to kill, because of the type of operations ran by SQL.
    
    To alleviate that, we introduce a new config parameter, allowing cutting the list of statement lines to match into slices, and running the matching in multiple queries. This way, we avoid server overload, giving the ability to kill the process if takes too long.
    
    closes odoo/odoo#114809
    
    Signed-off-by: default avatarLaurent Smet <las@odoo.com>
    54faf2b2
Loading