Skip to Content
Menu
This question has been flagged
2 Replies
3328 Views

Here is some example cases,

I've 1 corporate form with 1 staff table in corporate form.

Corporate trying to pay 1000 staff at once.

There is 4 state which is

Draft > Submit > Approve > Paid

While click paid button system will create res partner,  create users,  create history, and send email

1000 users now taking a long time


Now, i'm trying to speed up using SQL command, but there's i've no idea with send email.

May someone give me advise to handle this kind of data ?

SQL Create 1000 data = less than minute
.create + dictionary = 21 Minutes

Any better way than SQL ?

Avatar
Discard

1.000 records taking 21 minutes through the Odoo API? That feels like a way too underpowered server or misuse of the framework.

You should make sure the code is optimized at its best. It would be better if you can share your python logic.

Related Posts Replies Views Activity
3
Mar 15
12213
3
Sep 23
2180
0
Aug 22
3939
2
Mar 20
9269
1
Nov 18
2728