Skip to content

Commit

Permalink
Fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
CaitinChen committed Mar 5, 2019
1 parent abb8633 commit a87129e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tidb-internal-2.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Key: tablePrefix_tableID_indexSeperator_indexedColumnsValue
Value: rowID
```

Index 数据还需要考虑 Unique Index 和非 Unique Index 两种情况,对于 Unique Index,可以按照上述编码规则。但是对于非 Unique Index,通过这种编码并不能构造出唯一的 Key,因为同一个 Index 的 `tablePrefix_tableID_indexSeperator_ ` 都一样,可能有多行数据的 `ColumnsValue ` 是一样的,所以对于非 Unique Index 的编码做了一点调整:
Index 数据还需要考虑 Unique Index 和非 Unique Index 两种情况,对于 Unique Index,可以按照上述编码规则。但是对于非 Unique Index,通过这种编码并不能构造出唯一的 Key,因为同一个 Index 的 `tablePrefix_tableID_indexSeperator_` 都一样,可能有多行数据的 `ColumnsValue` 是一样的,所以对于非 Unique Index 的编码做了一点调整:

```
Key: tablePrefix_tableID_indexSeperator_indexedColumnsValue_rowID
Expand Down

0 comments on commit a87129e

Please sign in to comment.