Daily updates from Odoo
Wednesday, February 5, 2020
1 change · master
Code cleanup and technical improvements
Planning now creates recurring schedule slots in batches instead of one at a time. This reduces processing time for automated schedule generation by roughly 30-40%, helping larger planning setups run more efficiently.
Original PR description
This commit changes the `planning.slot` create method from create_single to create_multi. Quick benchmark: - cron configured to generate 6 months (this is the default value) - 3 companies with - 4 recurring slots/day - 7 days/week - 4 employees Run the cron: it generates 2688 slots per company The performance improves by 30 to 40%. The execution time goes from ~8.8s to ~5.5s.