Skip to content

Commit

Permalink
Merge pull request #4 from zeminzhou/zeminzhou/keyspace_rfc
Browse files Browse the repository at this point in the history
doc: support TiCDC for keyspace
  • Loading branch information
ystaticy authored Jun 5, 2024
2 parents d55948a + 9fb1c9e commit bb2efa7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/design/2022-12-07-keyspace.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ If "keyspace-name" is set when executing the BR command, it supports restore and

If "keyspace-name" is set when executing the Lightning command, it will encode key to add keyspace prefix before appends rows to the SST file, and decode key before records conflicts data into TiDB table.

#### TiCDC

If "keyspace-name" is set when creating a changefeed to TiCDC server, the server only captures the table data within that keyspace for the changefeed. For changefeed configured with keyspace, the TiCDC server will encode the table range with the keyspace prefix to subscribe the table data to TiKV server, and it will also decode the keyspace prefix from the key that received from TiKV server to get the table data. If "keyspace-name" is not set, the TiCDC server will not capture the table data of [API V2](https://github.com/tikv/rfcs/blob/master/text/0069-api-v2.md#tikv-server).

#### TiDB GC

##### Concepts of GC management type:
Expand Down

0 comments on commit bb2efa7

Please sign in to comment.