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 the API stands now, the SET_VERSIONSTAMP_KEY mutation type allows users to choose an arbitrary location for their versionstamp by appending an offset to the end of their key. In contrast, the SET_VERSIONSTAMP_VALUE mutation type forces users to place their version at the beginning. The proposal of this issue is thus the following two things:
It should be possible to place a versionstamp at an arbitrary offset of a value.
The API for the two of them should be the same (i.e., append an offset with a fixed number of bytes to the end).
Because values can be longer than 65 kB, the way to do this that keeps them consistent is to have both mutations use a 4 byte offset instead of a 2 byte one. (In theory, 3 bytes could be used, but probably inventing 24-bit integers for this use case is worse than just sending an extra byte over the wire.) We can API version guard this so that only users who have requested API version 520 or newer will get the change, so old code will continue to work as desired.
The text was updated successfully, but these errors were encountered:
As the API stands now, the
SET_VERSIONSTAMP_KEY
mutation type allows users to choose an arbitrary location for their versionstamp by appending an offset to the end of their key. In contrast, theSET_VERSIONSTAMP_VALUE
mutation type forces users to place their version at the beginning. The proposal of this issue is thus the following two things:Because values can be longer than 65 kB, the way to do this that keeps them consistent is to have both mutations use a 4 byte offset instead of a 2 byte one. (In theory, 3 bytes could be used, but probably inventing 24-bit integers for this use case is worse than just sending an extra byte over the wire.) We can API version guard this so that only users who have requested API version 520 or newer will get the change, so old code will continue to work as desired.
The text was updated successfully, but these errors were encountered: