Feature/variable hourly dist table
Trello card
Important
In this commit, the CUPS data import process is developed, allowing the processing of a CSV that contains 500 CUPS with 8760 coefficients for each one. The implementation carried out has processed the CSV in 20 minutes in a local environment:
Local Environment Memory Specifications
Total | Used | Free | Share | Buffer/Cache | Avaible | |
---|---|---|---|---|---|---|
Memory | 15Gi | 6,0Gi | 321Mi | 1,2Gi | 9,1Gi | 7,9Gi |
Swap | 2,0Gi | 0,0Ki | 2,0Gi | - | - | - |
odoo.conf configuration
To handle this process efficiently, the timeouts were customized in odoo.conf
as shown below:
limit_time_cpu = 360
Importance for Production
When pushing these changes to production, it is essential to perform extensive testing to ensure that the production server efficiently handles the workload. The resources available on the production server, especially memory and odoo.conf
settings, should be considered and adjusted as necessary to replicate the behavior observed in the local environment.
Merge request reports
Activity
added 1 commit
- 9f850f2e - [IMP] energy_selfconsumption: add DistributionTableVariable and...
added 1 commit
- 42811052 - [WIP] energy_selfconsumption: add import logic to method
added 1 commit
- 06c0c7d1 - [WIP] energy_selfconsumption: create import for distribution table variable
added 1 commit
- 65a6d96f - [IMP] energy_selfconsumption: Optimizing the CUPS import process and handling queued jobs
added 1 commit
- 8d06a4b7 - [IMP] energy_selfconsumption: add validation for CUPS and coefficients
added 1 commit
- d9d13252 - [IMP] energy_selfconsumption: set import_error_found to False
added 1 commit
- 1e3ff6ef - [IMP] energy_selfconsumption: create view with imported data
assigned to @DaniilDigtyar
unassigned @DaniilDigtyar
Superseded by !357 (closed)