moqui-framework icon indicating copy to clipboard operation
moqui-framework copied to clipboard

ES sync fail

Open daiagou opened this issue 2 years ago • 2 comments

Moqui synchronization is a single synchronization. If the data volume is relatively large, such as tens of thousands of product data or party data. So there will be a timeout situation. Can we add a batch synchronization or a synchronization failure retry operation for failed data.

daiagou avatar Jun 02 '23 01:06 daiagou

Yes, you can add it. Submit a PR for review.

On Thu, Jun 1, 2023 at 8:14 PM abner @.***> wrote:

Moqui synchronization is a single synchronization. If the data volume is relatively large, such as tens of thousands of product data or party data. So there will be a timeout situation. Can we add a batch synchronization or a synchronization failure retry operation for failed data.

— Reply to this email directly, view it on GitHub https://github.com/moqui/moqui-framework/issues/592, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFK5KLXGBCDP5F26NCR3Z4LXJE46RANCNFSM6AAAAAAYXVDTFI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- Guru Dharam Singh Khalsa

apathforward avatar Jun 02 '23 15:06 apathforward

Yes, this happens to us too, when restoring database snapshot dumps in staging/developer environments. The ES data folders are not saved, so at load time(from empty database), hundreds of thousands of WorkEfforts are sent over to ES, and it takes a very very long time.

For us, staging/developer stations have configured Postgresql to have extremely long commit times, so it runs a bit faster, but it still takes quite a bit of time.

This has been on my radar as something I want to fix, such that my local moqui has an uncommitted series of changes that print out a few basic things in this area of the code.

eigood avatar Jun 09 '23 19:06 eigood