TiDB Experimental Features

This document introduces the experimental features of TiDB in different versions. It is NOT recommended to use these features in the production environment.

Performance

Stability

  • Improve the stability of the optimizer's choice of indexes (Introduced in v5.0)
    • Extend the statistics feature by collecting the multi-column order dependency information.
    • Refactor the statistics module, including deleting the TopN value from CMSKetch and the histogram, and adding NDV information for histogram buckets of each table index. For details, see descriptions about Statistics - tidb_analyze_version = 2.
  • When TiKV is deployed with limited resources, if the foreground of TiKV processes too many read and write requests, the CPU resources used by the background are occupied to help process such requests, which affects the performance stability of TiKV. To avoid this situation, you can use the Quota Limiter to limit the CPU resources to be used by the foreground. (Introduced in v6.0)

Scheduling

  • Cascading Placement Rules feature. It is a replica rule system that guides PD to generate corresponding schedules for different types of data. By combining different scheduling rules, you can finely control the attributes of any continuous data range, such as the number of replicas, the storage location, the host type, whether to participate in Raft election, and whether to act as the Raft leader. See Cascading Placement Rules for details. (Introduced in v4.0)
  • Elastic scheduling feature. It enables the TiDB cluster to dynamically scale out and in on Kubernetes based on real-time workloads, which effectively reduces the stress during your application's peak hours and saves overheads. See Enable TidbCluster Auto-scaling for details. (Introduced in v4.0)

SQL

Configuration management

  • Persistently store configuration parameters in PD, and support dynamically modifying configuration items. (Introduced in v4.0)
  • SHOW CONFIG (Introduced in v4.0)

Data sharing and subscription

Storage

Backup and restoration

Data migration

  • Use WebUI to manage migration tasks in DM. (Introduced in v6.0)

Garbage collection

Diagnostics