1.3 Go practices in TiDB 姚维platform ○ Failpoint injection ○ Goroutine-leak detection ● Optimization ○ Chunk vs interface{} ○ Vectorized execution TiDB Overview TiDB TiDB TiDB Application via MySQL Protocol TiKV TiKV TiFlash TiKV TiKV columns[colIdx] return *(*uint64)(unsafe.Pointer(&col.data[r.idx*8])) } Chunk ● Less CPU cache miss ● Vectorized Execute expressions: Chunk func VectorizedExecute(ctx Context, exprs []Expression, iterator End(); row = iterator.Next() { err = executeToInt(ctx, expr, fieldType, row, output, colID) } …. } ● Vectorized Execute expressions: Lessons learned ● Make things right, then make things faster ● Premature0 码力 | 32 页 | 1.76 MB | 6 月前3
TiDB v5.3 Documentation· · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 537 9.3.2 Understanding the Query Execution Plan · · · · · · · · · · · · · · · · · · · · · · · · · 537 9.3.3 SQL Optimization Process · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 603 9.3.4 Control Execution Plans · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 669 10 Tutorials display the system process ID?· · · · · · · · · · · · · 2532 13.2.15 How to control or change the execution priority of SQL commits?· · · · · 2532 13.2.16 What’s the trigger strategy for auto analyze in0 码力 | 2996 页 | 49.30 MB | 1 年前3
TiDB v5.2 Documentation· · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 513 9.3.2 Understanding the Query Execution Plan · · · · · · · · · · · · · · · · · · · · · · · · · 513 9.3.3 SQL Optimization Process · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 579 9.3.4 Control Execution Plans · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 642 10 Tutorials display the system process ID?· · · · · · · · · · · · · 2421 13.2.15 How to control or change the execution priority of SQL commits?· · · · · 2421 13.2.16 What’s the trigger strategy for auto analyze in0 码力 | 2848 页 | 47.90 MB | 1 年前3
TiDB v5.4 Documentation· · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 635 9.3.2 Understanding the Query Execution Plan · · · · · · · · · · · · · · · · · · · · · · · · · 635 9.3.3 SQL Optimization Process · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 701 9.3.4 Control Execution Plans · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 775 10 Tutorials display the system process ID?· · · · · · · · · · · · · 3141 13.2.15 How to control or change the execution priority of SQL commits?· · · · · 3141 13.2.16 What’s the trigger strategy for auto analyze in0 码力 | 3650 页 | 52.72 MB | 1 年前3
TiDB v5.1 Documentation· · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 494 9.3.2 Understanding the Query Execution Plan · · · · · · · · · · · · · · · · · · · · · · · · · 494 9.3.3 SQL Optimization Process · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 560 9.3.4 Control Execution Plans · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 621 10 Tutorials display the system process ID?· · · · · · · · · · · · · 2349 13.2.15 How to control or change the execution priority of SQL commits?· · · · · 2349 13.2.16 What’s the trigger strategy for auto analyze in0 码力 | 2745 页 | 47.65 MB | 1 年前3
TiDB v6.1 Documentation· · · · · · · · · · · · · · · · · · · · · · · · · · · · · 1156 11.3.2 Understanding the Query Execution Plan · · · · · · · · · · · · · · · · · · · · · · · · · 1156 11.3.3 SQL Optimization Process · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 1222 11.3.4 Control Execution Plans · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 1308 12 Tutorials · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 3865 15.3.4 How to prevent the execution of a particular SQL statement? · · · · · · · · 3865 15.3.5 What are the MySQL variables that TiDB0 码力 | 4487 页 | 84.44 MB | 1 年前3
TiDB v6.5 Documentation· · · · · · · · · · · · · · · · · · · · · · · · · · · · · 1398 11.3.2 Understanding the Query Execution Plan · · · · · · · · · · · · · · · · · · · · · · · · · 1398 11.3.3 SQL Optimization Process · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 1476 11.3.4 Control Execution Plans · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 1571 12 Tutorials · · · · · · · · · · · · · · · · 1772 12.9 Execution Principles and Best Practices of DDL Statements · · · · · · · · · · · · · · · 1773 12.9.1 DDL execution principles · · · · · · · · · · · · · · · ·0 码力 | 5282 页 | 99.69 MB | 1 年前3
TiDB v7.6 Documentation· · · · · · · · · · · · · · · · · · · · · · · · · · · · · 1453 11.3.2 Understanding the Query Execution Plan · · · · · · · · · · · · · · · · · · · · · · · · · 1453 11.3.3 SQL Optimization Process · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 1537 11.3.4 Control Execution Plans · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 1675 12 Tutorials · · · · · · · · · · · · · · · · 1885 12.9 Execution Principles and Best Practices of DDL Statements · · · · · · · · · · · · · · · 1886 12.9.1 DDL execution principles · · · · · · · · · · · · · · · ·0 码力 | 6123 页 | 107.24 MB | 1 年前3
TiDB v7.5 Documentation· · · · · · · · · · · · · · · · · · · · · · · · · · · · · 1438 11.3.2 Understanding the Query Execution Plan · · · · · · · · · · · · · · · · · · · · · · · · · 1438 11.3.3 SQL Optimization Process · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 1522 11.3.4 Control Execution Plans · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 1658 12 Tutorials · · · · · · · · · · · · · · · · 1866 12.9 Execution Principles and Best Practices of DDL Statements · · · · · · · · · · · · · · · 1867 12.9.1 DDL execution principles · · · · · · · · · · · · · · · ·0 码力 | 6020 页 | 106.82 MB | 1 年前3
TiDB v7.1 Documentation· · · · · · · · · · · · · · · · · · · · · · · · · · · · · 1434 11.3.2 Understanding the Query Execution Plan · · · · · · · · · · · · · · · · · · · · · · · · · 1434 11.3.3 SQL Optimization Process · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 1514 11.3.4 Control Execution Plans · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 1637 12 Tutorials · · · · · · · · · · · · · · · · 1845 12.9 Execution Principles and Best Practices of DDL Statements · · · · · · · · · · · · · · · 1846 12.9.1 DDL execution principles · · · · · · · · · · · · · · · ·0 码力 | 5716 页 | 104.74 MB | 1 年前3
共 211 条
- 1
- 2
- 3
- 4
- 5
- 6
- 22













