Skip to content

Isn't the encoding described in tidb-internal-2 wrong? #41

@MyonKeminta

Description

@MyonKeminta

If I didn't get into mistake while reading the source code, when we encodes a key, we put the table_id just after the table prefix b"t". That is, the key format are like:

t{table_id}_r{record_id}

However this article says:

Key: tablePrefix_rowPrefix_tableID_rowID

It results in that someone (including me) get confused while trying to understand the encoding of keys.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions