Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
4 Risposte
3545 Visualizzazioni

Hello, 


I'm using the Odoo V15, and I'm stuck on a performance issue problem. I have to run a big import script inside Odoo, and to do this I used the cron from Odoo to allow to schedule the task in background and then run my long script. 

The problem is that the import is very very long (we speak about 2 hours maybe), and I reached the limit_time_real limit, so the task has not the time to finish and I don't get my full import done. 


How could I run this biggest importing task without increasing the limit_time_real value (to my mind it's not the idea here), is there a way to run the script background even if it takes hours to complete ? 


Thank you for your help :)

Avatar
Abbandona
Risposta migliore

Hi,

You have to change the written script to perform the operation in batch wise. Lets say if you have 10k records to import or update from some where, split it in a batch of 1k records and once it is processed successfully put some marker and exclude it from next batch.

Thanks

Avatar
Abbandona
Autore

Thank you Niyas, I thought about this option, it seems a pretty good idea, but I think that there could be another way (or more optimized), but I agree I think this the only solution, just I have to be sure that even for 1000 it doesn't reach the limit_time_real, at least I will increase it a little bit but not too much.

Risposta migliore

Hi  Benjamin Damour and Thomas Koliwer,

I think this video can help you: https://www.youtube.com/watch?v=etMYrOJyaiU&list=PLSKcWRTtEl5qzvRaI-VTGavfReiHS_EEb&index=2

Avatar
Abbandona

This app costs 1000USD btw

Risposta migliore

The module named "VKS Import Excel" can help you solve this problem easily: https://apps.odoo.com/apps/modules/15.0/vks_import_excel.

Please contact me via email anhtuan.acoi@gmail.com if you need further assistance.

Avatar
Abbandona
Risposta migliore

we have also had terrible experiences with large data imports (>70000 items with BOM, >50000 contacts). The scripts sometimes ran for 4-5 hours, then aborted (without error message) and you could start over. I have never experienced something like this with any ERP system...

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
mar 15
7407
1
ott 24
4906
0
lug 25
1010
1
lug 25
842
2
mag 25
1415