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
As all operation-level offsets appear to be the same, regardless of what is returned by the electric-offset header, that means pglite-sync will save the incorrect offset for any shape that returns more than one chunk initially.
What appears needs doing is to keep the last valid Offset returned by stream.lastOffset (so ignore 0_inf), which you can get at the moment you receive the last chunk.
The text was updated successfully, but these errors were encountered:
(+ some discussion on discord).
According to @thruflo , "The electric-offset header "Must be used as the value of the offset parameter in your next request."
https://electric-sql.com/openapi.html#/paths/~1v1~1shape/get".
pglite-sync
currently usesmessageAggregator[messageAggregator.length - 1].offset
pglite/packages/pglite-sync/src/index.ts
Line 252 in 6b60fbc
As all operation-level
offset
s appear to be the same, regardless of what is returned by theelectric-offset
header, that meanspglite-sync
will save the incorrectoffset
for any shape that returns more than one chunk initially.What appears needs doing is to keep the last valid
Offset
returned bystream.lastOffset
(so ignore0_inf
), which you can get at the moment you receive the last chunk.The text was updated successfully, but these errors were encountered: