Skip to content

Commit 0e6eab7

Browse files
committed
docs: improve terminology for indexes and PR background
1 parent 930eed9 commit 0e6eab7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

best-practices/tidb-best-practices.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ Lots of MySQL experience is also applicable to TiDB. It is noted that TiDB has i
8787

8888
* The more secondary indexes, the better?
8989

90-
Secondary indexes can speed up queries, but adding an index has side effects. The previous section introduces the storage model of indexes. For each additional index, there will be one more Key-Value when inserting a row. Therefore, the more indexes, the slower the writing speed and the more space it takes up.
90+
Secondary indexes can speed up queries, but adding an index has side effects. The previous section introduces the storage format of indexes. For each additional index, there will be one more Key-Value when inserting a row. Therefore, the more indexes, the slower the writing speed and the more space it takes up.
9191

9292
In addition, too many indexes affects the runtime of the optimizer, and inappropriate indexes mislead the optimizer. Thus, more secondary indexes does not mean better performance.
9393

0 commit comments

Comments
 (0)