Skip to content

Commit

Permalink
Support sequential write operation on server dbs (#472)
Browse files Browse the repository at this point in the history
  • Loading branch information
merlimat authored May 16, 2024
1 parent 6affc5e commit 1077dee
Show file tree
Hide file tree
Showing 10 changed files with 825 additions and 223 deletions.
466 changes: 246 additions & 220 deletions proto/client.pb.go

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions proto/client.proto
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,10 @@ message PutRequest {
// a record to a particular shard. It is passed to the server because it needs to be persisted as
// part of the record. We would need the partition_key if we're going to do a split of the shards.
optional string partition_key = 6;

// If one or more sequence key are specified. The key will get added suffixes
// based on adding the delta to the current highest key with the same prefix
repeated uint64 sequence_key_delta = 7;
}

/**
Expand All @@ -239,6 +243,10 @@ message PutResponse {
Status status = 1;
// The version if the put was successful
Version version = 2;

// If the key was generated by Oxia, it will be returned as part
// of the response
optional string key = 3;
}

/**
Expand Down
281 changes: 281 additions & 0 deletions proto/client_vtproto.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 1077dee

Please sign in to comment.