You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I have an interval of, let's suppose, 10 seconds and insert size of 1000 documents, and within that interval, a create event is first received followed by an update event for the same primary key, the current implementation of Meilisync's event buffer leads to the create event being overwritten by the update event.
@long2ice Would you be interested in a PR where a solution like self._events[sync][pk].append(event) is implemented?
This will preserve the order of the events on a primary key.
If I have an interval of, let's suppose, 10 seconds and insert size of 1000 documents, and within that interval, a create event is first received followed by an update event for the same primary key, the current implementation of Meilisync's event buffer leads to the create event being overwritten by the update event.
meilisync/meilisync/event.py
Lines 10 to 13 in 052c4de
self._events[sync][pk] = event
here the event will get overwritten.A potential solution could involve modifying the event handling logic to append events rather than overwrite them, for instance:
Or we could just do:
The text was updated successfully, but these errors were encountered: