Sign InTry Free

TiDB Features

This document lists the features supported in different TiDB versions, including Long-Term Support (LTS) versions and Development Milestone Release (DMR) versions after the latest LTS version.

You can try out TiDB features on TiDB Playground.

Data types, functions, and operators

Data types, functions, and operators6.56.15.45.35.25.15.04.0
Numeric typesYYYYYYYY
Date and time typesYYYYYYYY
String typesYYYYYYYY
JSON typeYEEEEEEE
Control flow functionsYYYYYYYY
String functionsYYYYYYYY
Numeric functions and operatorsYYYYYYYY
Date and time functionsYYYYYYYY
Bit functions and operatorsYYYYYYYY
Cast functions and operatorsYYYYYYYY
Encryption and compression functionsYYYYYYYY
Information functionsYYYYYYYY
JSON functionsYEEEEEEE
Aggregation functionsYYYYYYYY
Window functionsYYYYYYYY
Miscellaneous functionsYYYYYYYY
OperatorsYYYYYYYY
Character sets and collations 1YYYYYYYY
User-level lockYYNNNNNN

Indexing and constraints

Indexing and constraints6.56.15.45.35.25.15.04.0
Expression indexes 2YEEEEEE
Columnar storage (TiFlash)YYYYYYYY
Use FastScan to accelerate queries in OLAP scenariosENNNNNNN
RocksDB engineYYYYYYYY
Titan pluginYYYYYYYY
Titan Level MergeEEEEEEEE
Use buckets to improve scan concurrencyEENNNNNN
Invisible indexesYYYYYYYN
Composite PRIMARY KEYYYYYYYYY
Unique indexesYYYYYYYY
Clustered index on integer PRIMARY KEYYYYYYYYY
Clustered index on composite or non-integer keyYYYYYYYN

SQL statements

SQL statements 36.56.15.45.35.25.15.04.0
Basic SELECT, INSERT, UPDATE, DELETE, REPLACEYYYYYYYY
INSERT ON DUPLICATE KEY UPDATEYYYYYYYY
LOAD DATA INFILEYYYYYYYY
SELECT INTO OUTFILEYYYYYYYY
INNER JOIN, LEFT|RIGHT [OUTER] JOINYYYYYYYY
UNION, UNION ALLYYYYYYYY
EXCEPT and INTERSECT operatorsYYYYYYYN
GROUP BY, ORDER BYYYYYYYYY
Window FunctionsYYYYYYYY
Common Table Expressions (CTE)YYYYYYNN
START TRANSACTION, COMMIT, ROLLBACKYYYYYYYY
EXPLAINYYYYYYYY
EXPLAIN ANALYZEYYYYYYYY
User-defined variablesEEEEEEEE
BATCH [ON COLUMN] LIMIT INTEGER DELETEYYNNNNNN
BATCH [ON COLUMN] LIMIT INTEGER INSERT/UPDATE/REPLACEYNNNNNNN
ALTER TABLE ... COMPACTYENNNNNN
Table LockEEEEEEEE
TiFlash Query Result MaterializationENNNNNNN

Advanced SQL features

Advanced SQL features6.56.15.45.35.25.15.04.0
Prepared statement cacheYYYYEEEE
SQL plan management (SPM)YYYYYYYY
Create bindings according to historical execution plansENNNNNNN
Coprocessor cacheYYYYYYYE
Stale ReadYYYYYYNN
Follower readsYYYYYYYY
Read historical data (tidb_snapshot)YYYYYYYY
Optimizer hintsYYYYYYYY
MPP Execution EngineYYYYYYYN
Index MergeYYYEEEEE
Placement Rules in SQLYYEENNNN
Cascades PlannerEEEEEEEE

Data definition language (DDL)

Data definition language (DDL)6.56.15.45.35.25.15.04.0
Basic CREATE, DROP, ALTER, RENAME, TRUNCATEYYYYYYYY
Generated columnsEEEEEEEE
ViewsYYYYYYYY
SequencesYYYYYYYY
Auto incrementYYYYYYYY
Auto randomYYYYYYYY
TTL (Time to Live)ENNNNNNN
DDL algorithm assertionsYYYYYYYY
Multi-schema change: add columnsYEEEEEEE
Change column typeYYYYYYNN
Temporary tablesYYYYNNNN
Concurrent DDL statementsYNNNNNNN
Acceleration of ADD INDEX and CREATE INDEXYNNNNNNN
Metadata lockYNNNNNNN
FLASHBACK CLUSTERYNNNNNNN

Transactions

Transactions6.56.15.45.35.25.15.04.0
Async commitYYYYYYYN
1PCYYYYYYYN
Large transactions (10GB)YYYYYYYY
Pessimistic transactionsYYYYYYYY
Optimistic transactionsYYYYYYYY
Repeatable-read isolation (snapshot isolation)YYYYYYYY
Read-committed isolationYYYYYYYY

Partitioning

Partitioning6.56.15.45.35.25.15.04.0
Range partitioningYYYYYYYY
Hash partitioningYYYYYYYY
List partitioningYYEEEEEN
List COLUMNS partitioningYYEEEEEN
EXCHANGE PARTITIONYEEEEEEN
Dynamic pruningYYEEEENN
Range COLUMNS partitioningYNNNNNNN
Range INTERVAL partitioningENNNNNNN

Statistics

Statistics6.56.16.05.45.35.25.15.04.0
CMSketchDisabled by defaultDisabled by defaultDisabled by defaultDisabled by defaultDisabled by defaultYYYY
HistogramsYYYYYYYYY
Extended statisticsEEEEEEEEN
Statistics feedbackNDeprecatedDeprecatedDeprecatedEEEEE
Automatically update statisticsYYYYYYYYY
Fast AnalyzeEEEEEEEEE
Dynamic pruningYYEEEEENN
Collect statistics for PREDICATE COLUMNSEEEENNNNN
Control the memory quota for collecting statisticsEENNNNNNN
Randomly sample about 10000 rows of data to quickly build statisticsEEEEEEEEE
Lock statisticsENNNNNNNN

Security

Security6.56.15.45.35.25.15.04.0
Transparent layer security (TLS)YYYYYYYY
Encryption at rest (TDE)YYYYYYYY
Role-based authentication (RBAC)YYYYYYYY
Certificate-based authenticationYYYYYYYY
caching_sha2_password authenticationYYYYYNNN
tidb_sm3_password authenticationYNNNNNNN
tidb_auth_token authenticationYNNNNNNN
Password managementYNNNNNNN
MySQL compatible GRANT systemYYYYYYYY
Dynamic PrivilegesYYYYYYNN
Security Enhanced ModeYYYYYYNN
Redacted Log FilesYYYYYYYN

Data import and export

Data import and export6.56.15.45.35.25.15.04.0
Fast Importer (TiDB Lightning)YYYYYYYY
mydumper logical dumperDeprecatedDeprecatedDeprecatedDeprecatedDeprecatedDeprecatedDeprecatedDeprecated
Dumpling logical dumperYYYYYYYY
Transactional LOAD DATAYYYYYYYN 5
Database migration toolkit (DM)YYYYYYYY
TiDB BinlogYYYYYYYY
Change data capture (CDC)YYYYYYYY
Stream data to Amazon S3, Azure Blob Storage, and NFS through TiCDCENNNNNNN
TiCDC supports bidirectional replication between two TiDB clustersYNNNNNNN

Management, observability, and tools

Management, observability, and tools6.56.15.45.35.25.15.04.0
TiDB Dashboard UIYYYYYYYY
TiDB Dashboard Continuous ProfilingYYEENNNN
TiDB Dashboard Top SQLYYENNNNN
TiDB Dashboard SQL DiagnosticsYEEEEEEE
TiDB Dashboard Cluster DiagnosticsYEEEEEEE
TiKV-FastTune dashboardEEEEEEEE
Information schemaYYYYYYYY
Metrics schemaYYYYYYYY
Statements summary tablesYYYYYYYY
Slow query logYYYYYYYY
TiUP deploymentYYYYYYYY
Kubernetes operatorYYYYYYYY
Built-in physical backupYYYYYYYY
Global KillYYEEEEEE
Lock ViewYYYYYEEE
SHOW CONFIGYYYYYYYY
SET CONFIGYYEEEEEE
DM WebUIEENNNNNN
Foreground Quota LimiterYENNNNNN
Background Quota LimiterENNNNNNN
EBS volume snapshot backup and restoreYNNNNNNN
PITRYNNNNNNN
Global memory controlYNNNNNNN
Cross-cluster RawKV replicationENNNNNNN
Green GCEEEEEEEN

  1. TiDB incorrectly treats latin1 as a subset of utf8. See TiDB #18955 for more details.
  2. Starting from v6.5.0, the expression indexes created on the functions listed by the tidb_allow_function_for_expression_index system variable have been tested and can be used in production environments, and more functions will be supported in the future releases. For functions not listed by this variable, the corresponding expression indexes are not recommended for use in production environments. See expression indexes for details.
  3. See Statement Reference for a full list of SQL statements supported.
  4. For TiDB v4.0, the LOAD DATA transaction does not guarantee atomicity.

Was this page helpful?

Download PDFRequest docs changesAsk questions on Discord
Playground
New
One-stop & interactive experience of TiDB's capabilities WITHOUT registration.
Products
TiDB
TiDB Dedicated
TiDB Serverless
Pricing
Get Demo
Get Started
© 2024 PingCAP. All Rights Reserved.
Privacy Policy.