????????
Mirror sync ???????? ?????????? ?? updated_at / deleted_at, ?? ?????? ? YDB ??????????? ??????? ??????????? UPSERT.
???? ??? ??????? ???????? ???????????, ???????? ????????:
- ?????? A ?????? remote snapshot;
- ?????? B ?????????? ????? ????? ?????? ??????;
- ?????? A ?????????? ???????????? ?????, ????? ?????? ??????;
- ???????????
UPSERT ?????????????? ????? remote-?????? ??????????? ???????.
?????? ??? ?? ????????? ?????????: ???????? ???????????? ???????? ?? legacy-sync, ? mirror ???????????? ??? ????????? ??????/?????????? ??????????????.
??? ??????? ?????
- ??????? ?????? mirror-????? ????????: ????????? remote row ?????? ???? ????????
versionAt ????? ????????????.
- ??????
deleted_at ??? ????? ?????? tombstone.
- ????????? ????????? ? ?????? ???????? ?? ??????? YDB (?????????? ??? ????????
UPDATE/UPSERT).
- ???????? ?????????????? ???? ? ????? ?????????, ??? ?????????? push ???????? ????? ????? ??????.
???????? ??????????
??????? push ??????????? snapshot ?? ????? ???????????? ????? ????? live-?????? ??? tombstone ? YDB.
????????
Mirror sync ???????? ?????????? ??
updated_at/deleted_at, ?? ?????? ? YDB ??????????? ??????? ???????????UPSERT.???? ??? ??????? ???????? ???????????, ???????? ????????:
UPSERT?????????????? ????? remote-?????? ??????????? ???????.?????? ??? ?? ????????? ?????????: ???????? ???????????? ???????? ?? legacy-sync, ? mirror ???????????? ??? ????????? ??????/?????????? ??????????????.
??? ??????? ?????
versionAt????? ????????????.deleted_at??? ????? ?????? tombstone.UPDATE/UPSERT).???????? ??????????
??????? push ??????????? snapshot ?? ????? ???????????? ????? ????? live-?????? ??? tombstone ? YDB.