- Docs Home
- About TiDB
- Quick Start
- Develop
- Overview
- Quick Start
- Build a TiDB Cluster in TiDB Cloud (Developer Tier)
- CRUD SQL in TiDB
- Build a Simple CRUD App with TiDB
- Example Applications
- Connect to TiDB
- Design Database Schema
- Write Data
- Read Data
- Transaction
- Optimize
- Troubleshoot
- Reference
- Cloud Native Development Environment
- Third-party Support
- Deploy
- Software and Hardware Requirements
- Environment Configuration Checklist
- Plan Cluster Topology
- Install and Start
- Verify Cluster Status
- Test Cluster Performance
- Migrate
- Overview
- Migration Tools
- Migration Scenarios
- Migrate from Aurora
- Migrate MySQL of Small Datasets
- Migrate MySQL of Large Datasets
- Migrate and Merge MySQL Shards of Small Datasets
- Migrate and Merge MySQL Shards of Large Datasets
- Migrate from CSV Files
- Migrate from SQL Files
- Migrate from One TiDB Cluster to Another TiDB Cluster
- Migrate from TiDB to MySQL-compatible Databases
- Advanced Migration
- Integrate
- Maintain
- Monitor and Alert
- Troubleshoot
- TiDB Troubleshooting Map
- Identify Slow Queries
- Analyze Slow Queries
- SQL Diagnostics
- Identify Expensive Queries Using Top SQL
- Identify Expensive Queries Using Logs
- Statement Summary Tables
- Troubleshoot Hotspot Issues
- Troubleshoot Increased Read and Write Latency
- Save and Restore the On-Site Information of a Cluster
- Troubleshoot Cluster Setup
- Troubleshoot High Disk I/O Usage
- Troubleshoot Lock Conflicts
- Troubleshoot TiFlash
- Troubleshoot Write Conflicts in Optimistic Transactions
- Troubleshoot Inconsistency Between Data and Indexes
- Performance Tuning
- Tuning Guide
- Configuration Tuning
- System Tuning
- Software Tuning
- SQL Tuning
- Overview
- Understanding the Query Execution Plan
- SQL Optimization Process
- Overview
- Logic Optimization
- Physical Optimization
- Prepare Execution Plan Cache
- Control Execution Plans
- Tutorials
- TiDB Tools
- Overview
- Use Cases
- Download
- TiUP
- Documentation Map
- Overview
- Terminology and Concepts
- Manage TiUP Components
- FAQ
- Troubleshooting Guide
- Command Reference
- Overview
- TiUP Commands
- TiUP Cluster Commands
- Overview
- tiup cluster audit
- tiup cluster check
- tiup cluster clean
- tiup cluster deploy
- tiup cluster destroy
- tiup cluster disable
- tiup cluster display
- tiup cluster edit-config
- tiup cluster enable
- tiup cluster help
- tiup cluster import
- tiup cluster list
- tiup cluster patch
- tiup cluster prune
- tiup cluster reload
- tiup cluster rename
- tiup cluster replay
- tiup cluster restart
- tiup cluster scale-in
- tiup cluster scale-out
- tiup cluster start
- tiup cluster stop
- tiup cluster template
- tiup cluster upgrade
- TiUP DM Commands
- Overview
- tiup dm audit
- tiup dm deploy
- tiup dm destroy
- tiup dm disable
- tiup dm display
- tiup dm edit-config
- tiup dm enable
- tiup dm help
- tiup dm import
- tiup dm list
- tiup dm patch
- tiup dm prune
- tiup dm reload
- tiup dm replay
- tiup dm restart
- tiup dm scale-in
- tiup dm scale-out
- tiup dm start
- tiup dm stop
- tiup dm template
- tiup dm upgrade
- TiDB Cluster Topology Reference
- DM Cluster Topology Reference
- Mirror Reference Guide
- TiUP Components
- PingCAP Clinic Diagnostic Service
- TiDB Operator
- Dumpling
- TiDB Lightning
- TiDB Data Migration
- About TiDB Data Migration
- Architecture
- Quick Start
- Deploy a DM cluster
- Tutorials
- Advanced Tutorials
- Maintain
- Cluster Upgrade
- Tools
- Performance Tuning
- Manage Data Sources
- Manage Tasks
- Export and Import Data Sources and Task Configurations of Clusters
- Handle Alerts
- Daily Check
- Reference
- Architecture
- Command Line
- Configuration Files
- OpenAPI
- Compatibility Catalog
- Secure
- Monitoring and Alerts
- Error Codes
- Glossary
- Example
- Troubleshoot
- Release Notes
- Backup & Restore (BR)
- TiDB Binlog
- TiCDC
- Dumpling
- sync-diff-inspector
- TiSpark
- Reference
- Cluster Architecture
- Key Monitoring Metrics
- Secure
- Privileges
- SQL
- SQL Language Structure and Syntax
- SQL Statements
ADD COLUMNADD INDEXADMINADMIN CANCEL DDLADMIN CHECKSUM TABLEADMIN CHECK [TABLE|INDEX]ADMIN SHOW DDL [JOBS|QUERIES]ADMIN SHOW TELEMETRYALTER DATABASEALTER INDEXALTER INSTANCEALTER PLACEMENT POLICYALTER TABLEALTER TABLE COMPACTALTER USERANALYZE TABLEBACKUPBATCHBEGINCHANGE COLUMNCOMMITCHANGE DRAINERCHANGE PUMPCREATE [GLOBAL|SESSION] BINDINGCREATE DATABASECREATE INDEXCREATE PLACEMENT POLICYCREATE ROLECREATE SEQUENCECREATE TABLE LIKECREATE TABLECREATE USERCREATE VIEWDEALLOCATEDELETEDESCDESCRIBEDODROP [GLOBAL|SESSION] BINDINGDROP COLUMNDROP DATABASEDROP INDEXDROP PLACEMENT POLICYDROP ROLEDROP SEQUENCEDROP STATSDROP TABLEDROP USERDROP VIEWEXECUTEEXPLAIN ANALYZEEXPLAINFLASHBACK TABLEFLUSH PRIVILEGESFLUSH STATUSFLUSH TABLESGRANT <privileges>GRANT <role>INSERTKILL [TIDB]LOAD DATALOAD STATSMODIFY COLUMNPREPARERECOVER TABLERENAME INDEXRENAME TABLEREPLACERESTOREREVOKE <privileges>REVOKE <role>ROLLBACKSELECTSET DEFAULT ROLESET [NAMES|CHARACTER SET]SET PASSWORDSET ROLESET TRANSACTIONSET [GLOBAL|SESSION] <variable>SHOW ANALYZE STATUSSHOW [BACKUPS|RESTORES]SHOW [GLOBAL|SESSION] BINDINGSSHOW BUILTINSSHOW CHARACTER SETSHOW COLLATIONSHOW [FULL] COLUMNS FROMSHOW CONFIGSHOW CREATE PLACEMENT POLICYSHOW CREATE SEQUENCESHOW CREATE TABLESHOW CREATE USERSHOW DATABASESSHOW DRAINER STATUSSHOW ENGINESSHOW ERRORSSHOW [FULL] FIELDS FROMSHOW GRANTSSHOW INDEX [FROM|IN]SHOW INDEXES [FROM|IN]SHOW KEYS [FROM|IN]SHOW MASTER STATUSSHOW PLACEMENTSHOW PLACEMENT FORSHOW PLACEMENT LABELSSHOW PLUGINSSHOW PRIVILEGESSHOW [FULL] PROCESSSLISTSHOW PROFILESSHOW PUMP STATUSSHOW SCHEMASSHOW STATS_HEALTHYSHOW STATS_HISTOGRAMSSHOW STATS_METASHOW STATUSSHOW TABLE NEXT_ROW_IDSHOW TABLE REGIONSSHOW TABLE STATUSSHOW [FULL] TABLESSHOW [GLOBAL|SESSION] VARIABLESSHOW WARNINGSSHUTDOWNSPLIT REGIONSTART TRANSACTIONTABLETRACETRUNCATEUPDATEUSEWITH
- Data Types
- Functions and Operators
- Overview
- Type Conversion in Expression Evaluation
- Operators
- Control Flow Functions
- String Functions
- Numeric Functions and Operators
- Date and Time Functions
- Bit Functions and Operators
- Cast Functions and Operators
- Encryption and Compression Functions
- Locking Functions
- Information Functions
- JSON Functions
- Aggregate (GROUP BY) Functions
- Window Functions
- Miscellaneous Functions
- Precision Math
- Set Operations
- List of Expressions for Pushdown
- TiDB Specific Functions
- Clustered Indexes
- Constraints
- Generated Columns
- SQL Mode
- Table Attributes
- Transactions
- Garbage Collection (GC)
- Views
- Partitioning
- Temporary Tables
- Cached Tables
- Character Set and Collation
- Placement Rules in SQL
- System Tables
mysql- INFORMATION_SCHEMA
- Overview
ANALYZE_STATUSCLIENT_ERRORS_SUMMARY_BY_HOSTCLIENT_ERRORS_SUMMARY_BY_USERCLIENT_ERRORS_SUMMARY_GLOBALCHARACTER_SETSCLUSTER_CONFIGCLUSTER_HARDWARECLUSTER_INFOCLUSTER_LOADCLUSTER_LOGCLUSTER_SYSTEMINFOCOLLATIONSCOLLATION_CHARACTER_SET_APPLICABILITYCOLUMNSDATA_LOCK_WAITSDDL_JOBSDEADLOCKSENGINESINSPECTION_RESULTINSPECTION_RULESINSPECTION_SUMMARYKEY_COLUMN_USAGEMETRICS_SUMMARYMETRICS_TABLESPARTITIONSPLACEMENT_POLICIESPROCESSLISTREFERENTIAL_CONSTRAINTSSCHEMATASEQUENCESSESSION_VARIABLESSLOW_QUERYSTATISTICSTABLESTABLE_CONSTRAINTSTABLE_STORAGE_STATSTIDB_HOT_REGIONSTIDB_HOT_REGIONS_HISTORYTIDB_INDEXESTIDB_SERVERS_INFOTIDB_TRXTIFLASH_REPLICATIKV_REGION_PEERSTIKV_REGION_STATUSTIKV_STORE_STATUSUSER_PRIVILEGESVIEWS
METRICS_SCHEMA
- UI
- TiDB Dashboard
- Overview
- Maintain
- Access
- Overview Page
- Cluster Info Page
- Top SQL Page
- Key Visualizer Page
- Metrics Relation Graph
- SQL Statements Analysis
- Slow Queries Page
- Cluster Diagnostics
- Search Logs Page
- Instance Profiling
- Session Management and Configuration
- FAQ
- CLI
- Command Line Flags
- Configuration File Parameters
- System Variables
- Storage Engines
- Telemetry
- Errors Codes
- Table Filter
- Schedule Replicas by Topology Labels
- FAQs
- Release Notes
- All Releases
- Release Timeline
- TiDB Versioning
- v6.1
- v6.0
- v5.4
- v5.3
- v5.2
- v5.1
- v5.0
- v4.0
- v3.1
- v3.0
- v2.1
- v2.0
- v1.0
- Glossary
TiDB 3.0.0-rc.1 Release Notes
Release Date: May 10, 2019
TiDB version: 3.0.0-rc.1
TiDB Ansible version: 3.0.0-rc.1
Overview
On May 10, 2019, TiDB 3.0.0-rc.1 is released. The corresponding TiDB Ansible version is 3.0.0-rc.1. Compared with TiDB 3.0.0-beta.1, this release has greatly improved the stability, usability, features, the SQL optimizer, statistics, and the execution engine.
TiDB
SQL Optimizer
- Improve the accuracy of cost estimates by using order correlation between columns; introduce a heuristic parameter
tidb_opt_correlation_exp_factorto control the preference for index scans for scenarios when correlation cannot be directly used for estimation. #9839 - Match more prefix columns of the indexes when extracting access conditions of composite indexes if there are relevant columns in the filter #10053
- Use the dynamic programming algorithm to specify the execution order of join operations when the number of tables participating in the join is less than the value of
tidb_opt_join_reorder_threshold. #8816 - Match more prefix columns of the indexes in the inner tables that build the index join when using composite indexes as the access conditions #8471
- Improve the accuracy of row count estimation for single-column indexes with NULL values #9474
- Specially handle
GROUP_CONCATwhen eliminating aggregate functions during the logical optimization phase to prevent incorrect executions #9967 - Properly push the filter down to child nodes of the join operator if the filter is a constant #9848
- Specially handle some functions such as
RAND()when pruning columns during the logical optimization phase to prevent incompatibilities with MySQL #10064 - Support
FAST ANALYZE, which speeds up statistics collection by sampling the region instead of scanning the entire region. This feature is controlled by the variabletidb_enable_fast_analyze. #10258 - Support SQL Plan Management, which ensures execution stability by performing execution plan binding for SQL statements. This feature is currently in beta and only supports bound execution plans for SELECT statements. It is not recommended to use it in the production environment. #10284
- Improve the accuracy of cost estimates by using order correlation between columns; introduce a heuristic parameter
Execution Engine
- Support tracking and controlling memory usage in three operators -
TableReader,IndexReaderandIndexLookupReader#10003 - Support showing more information about coprocessor tasks in the slow log such as the number of tasks in coprocessor, the average/longest/90% of execution/waiting time and the addresses of the TiKVs which take the longest execution time or waiting time #10165
- Support the prepared DDL statements with no placeholders #10144
- Support tracking and controlling memory usage in three operators -
Server
- Only allow the DDL owner to execute bootstrap when TiDB is started #10029
- Add the variable
tidb_skip_isolation_level_checkto prevent TiDB from reporting errors when setting the transaction isolation level to SERIALIZABLE #10065 - Merge the implicit commit time and the SQL execution time in the slow log #10294
- Support
GRANT ROLE#9721 - Fix the
ConnectionEventerror from thewhitelistplugin that makes TiDB exit #9889 - Fix the issue of mistakenly adding read-only statements to the transaction history #9723
- Improve
killstatements to stop SQL execution and release resources more quickly #9844 - Add a startup option
config-checkto check the validity of the configuration file #9855 - Fix the validity check of inserting NULL fields when the strict SQL mode is disabled #10161
DDL
- Add the
pre_split_regionsoption forCREATE TABLEstatements; this option supports pre-splitting the Table Region when creating a table to avoid write hot spots caused by lots of writes after the table creation #10138 - Optimize the execution performance of some DDL statements #10170
- Add the warning that full-text indexes are not supported for
FULLTEXT KEY#9821 - Fix the compatibility issue for the UTF8 and UTF8MB4 charsets in the old versions of TiDB #9820
- Fix the potential bug in
shard_row_id_bitsof a table #9868 - Fix the bug that the column charset is not changed after the table charset is changed #9790
- Fix a potential bug in
SHOW COLUMNwhen usingBINARY/BITas the column default value #9897 - Fix the compatibility issue in displaying
CHARSET/COLLATIONdescriptions in theSHOW FULL COLUMNSstatement #10007 - Fix the issue that the
SHOW COLLATIONSstatement only lists collations supported by TiDB #10186
- Add the
PD
- Upgrade ETCD #1452
- Unify the log format of etcd and PD server
- Fix the issue of failing to elect Leader by PreVote
- Support fast dropping the “propose” and “read” requests that are to fail to avoid blocking the subsequent requests
- Fix the deadlock issue of Lease
- Fix the issue that a hot store makes incorrect statistics of keys #1487
- Support forcibly rebuilding a PD cluster from a single PD node #1485
- Fix the issue that
regionScatterermight generate an invalidOperatorStep#1482 - Fix the too short timeout issue of the
MergeRegionoperator #1495 - Support giving high priority to hot region scheduling #1492
- Add the metrics for recording the time of handling TSO requests on the PD server side #1502
- Add the corresponding Store ID and Address to the metrics related to the store #1506
- Support the
GetOperatorservice #1477 - Fix the issue that the error cannot be sent in the Heartbeat stream because the store cannot be found #1521
TiKV
Engine
- FIx the issue that may cause incorrect statistics on read traffic #4436
- Fix the issue that may cause prefix extractor panic when deleting a range #4503
- Optimize memory management to reduce memory allocation and copying for
Iterator Key Bound Option#4537 - Fix the issue that failing to consider learner log gap may in some cases cause panic #4559
- Support
block cachesharing among differentcolumn families#4612
Server
RaftStore
- Support configurable
properties index distance#4517
- Support configurable
Coprocessor
- Add batch index scan executor #4419
- Add vectorized evaluation framework #4322
- Add execution summary framework for batch executors #4433
- Check the maximum column when constructing the RPN expression to avoid invalid column offset that may cause evaluation panic #4481
- Add
BatchLimitExecutor#4469 - Replace the original
futures-cpupoolwithtokio-threadpoolin ReadPool to reduce context switch #4486 - Add batch aggregation framework #4533
- Add
BatchSelectionExecutor#4562 - Add batch aggression function
AVG#4570 - Add RPN function
LogicalAnd#4575
Misc
- Support
tcmallocas a memory allocator #4370
- Support
Tools
TiDB Binlog
- Fix the replication abortion issue when binlog data for the primary key column of unsigned int type is negative #573
- Provide no compression option when downstream is
pb; modify the downstream name frompbtofile#559 - Add the
storage.sync-logconfiguration item in Pump that allows asynchronous flush on local storage #509 - Support traffic compression for communications between Pump and Drainer #495
- Add the
syncer.sql-modeconfiguration item in Drainer to support parsing DDL queries in different sql-mode #511 - Add the
syncer.ignore-tableconfiguration item to support filtering out tables that do not require replication #520
Lightning
- Use row IDs or default column values to populate the column data missed in the dump file #170
- Fix the bug in Importer that import success may still be returned even if part of the SST failed to be imported #4566
- Support speed limit in Importer when uploading SST to TiKV #4412
- Support importing tables by size to reduce impacts on the cluster brought by Checksum and Analyze for big tables, and improve the success rate for Checksum and Analyze #156
- Improve Lightning’s SQL encoding performance by 50% by directly parsing data source file as types.Datum of TiDB and saving extra parsing overhead from the KV encoder #145
- Change log format to Unified Log Format #162
- Add some command line options for use when the configuration file is missing #157
sync-diff-inspector
TiDB Ansible
- Support more TiKV monitoring panels and update versions for Ansible, Grafana, and Prometheus #727
- Summary dashboard for viewing cluster status
- trouble_shooting dashboard for troubleshooting issues
- Details dashboard for developers to analyze issues
- Fix the bug that causes the downloading failure of TiDB Binlog of Kafka version #730
- Modify version limits on supported operating systems as CentOS 7.0+ and later, and Red Hat 7.0 and later #733
- Change version detection mode during the rolling update to multi-concurrent #736
- Update documentation links in README #740
- Remove redundant TiKV monitoring metrics; add new metrics for troubleshooting #735
- Optimize
table-regions.pyscript to display leader distribution by table #739 - Update configuration file for Drainer #745
- Optimize TiDB monitoring with new panels that display latencies by SQL categories #747
- Update the Lightning configuration file and add the
tidb_lightning_ctlscript #1e946f8
Was this page helpful?