Closed eigood closed 2 years ago
It took 23 minutes for this process to complete, against 570 OrderItemWorkEffort. This might help as well:
kubectl logs -n moqui moqui-74fd454f44-kxhzt|grep 'In delete document not found in index mantle_sales_order_item'|wc 6109 91635 977440 kubectl logs -n moqui moqui-74fd454f44-kxhzt|grep 'In delete document not found in index mantle_inventory_order_item'|wc 6109 91635 1001876
It might not be OrderItemWorkEffort; at a guess, it's deleting everthing in elasticsearch that is connected to the user who this order is placed for, and this particular account is very busy. I might need help to track this down.
Closing this, to continue in moqui-framework.
I've just reset my cluster, and it loaded a copy of sanitized production data. At startup, this created an order, which then had 2800(or so, some super large number) of OrderItemWorkEffort. The following code then is running, and running, and running, doing the same delete call into elasticsearch.
It would seem to be more efficient to just do 1 delete call.