Se rendre au contenu
Menu
Cette question a été signalée
4 Réponses
3544 Vues

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
Ignorer
Meilleure réponse

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
Ignorer
Auteur

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.

Meilleure réponse

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
Ignorer

This app costs 1000USD btw

Meilleure réponse

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
Ignorer
Meilleure réponse

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
Ignorer
Publications associées Réponses Vues Activité
2
mars 15
7407
1
oct. 24
4905
0
juil. 25
1005
1
juil. 25
840
2
mai 25
1391