Mafiree logo
  • About
  • Services
  • Blogs
  • Careers
  • Products
    • orbit logo Orbit
    • streamer logo Xstreami
  • Contact
Schedule a Call
Menu
  • About
  • Services
  • Blogs
  • Careers
  • Products
    • orbit logo Orbit
    • streamer logo Xstreami
  • Contact
  • Schedule a Call
Database
Database Database Managed Services
MySQL MySQL
MySQL Consulting Services
MySQL Migration Services
MySQL Optimization & Query Tuning
MySQL Database Administration
MySQL Backup & Recovery
MySQL Security & Maintenance
MySQL Cloud Services (AWS RDS, Aurora, Google Cloud SQL, Azure)
MySQL for Ecommerce
MySQL High Availability & Replication
MongoDB MongoDB
MongoDB Consulting Services
MongoDB Migration Services
MongoDB Optimization & Query Tuning
MongoDB Database Administration
MongoDB Backup & Recovery
MongoDB Security & Maintenance
MongoDB Cloud (Atlas)
MongoDB Solutions by Industry
MongoDB High Availability & Replication
PostgreSQL PostgreSQL
PostgreSQL Consulting
PostgreSQL Migration & Upgrades
Performance Tuning & Query Optimization
PostgreSQL Administration & Managed Services
High Availability, Clustering & Replication
PostgreSQL Backup, Recovery & Disaster Planning
PostgreSQL Security, Compliance & Auditing
PostgreSQL for Analytics & Data Warehousing
PostgreSQL on Cloud & Containers
PostgreSQL Extensions & Open-Source Integrations
PostgreSQL for Every Industry
SQL Server MSSQL
MSSQL Consulting Services
MSSQL Migration Services
MSSQL Optimization & Query Tuning Services
MSSQL Database Administration Services
MSSQL Backup & Recovery Services
MSSQL High Availability & Replication Services
MSSQL Security & Compliance Services
MSSQL Performance Monitoring & Health Checks
MSSQL Solutions by Industry
Aerospike Aerospike
Aerospike Consulting Services
Aerospike Migration Services
Aerospike Performance Optimization & Tuning
Aerospike Database Administration
Aerospike Backup & Recovery
Aerospike High Availability
Aerospike Cloud & Hybrid Deployments
Aerospike for Real-Time Applications (AdTech, FinTech, Retail, IoT)
Analytics DB
Analytics DB Analytics DB Services
Clickhouse Clickhouse
ClickHouse Consulting Services
ClickHouse Migration Services
ClickHouse Optimization & Query Tuning
ClickHouse Database Administration
ClickHouse Backup & Recovery
ClickHouse Security & Maintenance
ClickHouse Cloud Services (ClickHouse Cloud, AWS, GCP, Azure)
ClickHouse Solutions by Industry
ClickHouse High Availability & Replication
TiDB TiDB
TiDB Consulting & Architecture Planning
TiDB Administration & Maintenance
TiDB Security and Privacy Maintenance
TiDB Performance & Query Optimization
TiDB Migration Services
TiDB Backup & Disaster Recovery
TiDB High Availability Solutions
TiDB Solutions by Industry
TiDB Cloud Services
ScyllaDB ScyllaDB
ScyllaDB Consulting & Architecture Planning
ScyllaDB Administration & Maintenance
ScyllaDB Security and Privacy Maintenance
ScyllaDB Performance & Query Optimization
ScyllaDB Migration Services
ScyllaDB Backup & Disaster Recovery
ScyllaDB High Availability Solutions
ScyllaDB Solutions by Industry
ScyllaDB Cloud Services
DevOps
DevOps DevOps Services
Version Control Version Control
Kubernetes Kubernetes
Infrastructure Infrastructure Management
Web Servers Web Servers
Networking
Networking Networking Services
Basic Basic
Advanced Advanced
MySQL MySQL
MongoDB MongoDB
PostgreSQL PostgreSQL
MSSQL MSSQL
Aerospike Aerospike
Clickhouse Clickhouse
TiDB TiDB
ScyllaDB ScyllaDB
Version Control Version Control
Kubernetes Kubernetes
Infrastructure Infrastructure Management
Web Servers Web Servers
Basic Basic
Advanced Advanced
MySQL Consulting Services
MySQL Migration Services
MySQL Optimization & Query Tuning
MySQL Database Administration
MySQL Backup & Recovery
MySQL Security & Maintenance
MySQL Cloud Services (AWS RDS, Aurora, Google Cloud SQL, Azure)
MySQL for Ecommerce
MySQL High Availability & Replication
MongoDB Consulting Services
MongoDB Migration Services
MongoDB Optimization & Query Tuning
MongoDB Database Administration
MongoDB Backup & Recovery
MongoDB Security & Maintenance
MongoDB Cloud (Atlas)
MongoDB Solutions by Industry
MongoDB High Availability & Replication
PostgreSQL Consulting
PostgreSQL Migration & Upgrades
Performance Tuning & Query Optimization
PostgreSQL Administration & Managed Services
High Availability, Clustering & Replication
PostgreSQL Backup, Recovery & Disaster Planning
PostgreSQL Security, Compliance & Auditing
PostgreSQL for Analytics & Data Warehousing
PostgreSQL on Cloud & Containers
PostgreSQL Extensions & Open-Source Integrations
PostgreSQL for Every Industry
MSSQL Consulting Services
MSSQL Migration Services
MSSQL Optimization & Query Tuning Services
MSSQL Database Administration Services
MSSQL Backup & Recovery Services
MSSQL High Availability & Replication Services
MSSQL Security & Compliance Services
MSSQL Performance Monitoring & Health Checks
MSSQL Solutions by Industry
Aerospike Consulting Services
Aerospike Migration Services
Aerospike Performance Optimization & Tuning
Aerospike Database Administration
Aerospike Backup & Recovery
Aerospike High Availability
Aerospike Cloud & Hybrid Deployments
Aerospike for Real-Time Applications (AdTech, FinTech, Retail, IoT)
ClickHouse Consulting Services
ClickHouse Migration Services
ClickHouse Optimization & Query Tuning
ClickHouse Database Administration
ClickHouse Backup & Recovery
ClickHouse Security & Maintenance
ClickHouse Cloud Services (ClickHouse Cloud, AWS, GCP, Azure)
ClickHouse Solutions by Industry
ClickHouse High Availability & Replication
TiDB Consulting & Architecture Planning
TiDB Administration & Maintenance
TiDB Security and Privacy Maintenance
TiDB Performance & Query Optimization
TiDB Migration Services
TiDB Backup & Disaster Recovery
TiDB High Availability Solutions
TiDB Solutions by Industry
TiDB Cloud Services
ScyllaDB Consulting & Architecture Planning
ScyllaDB Administration & Maintenance
ScyllaDB Security and Privacy Maintenance
ScyllaDB Performance & Query Optimization
ScyllaDB Migration Services
ScyllaDB Backup & Disaster Recovery
ScyllaDB High Availability Solutions
ScyllaDB Solutions by Industry
ScyllaDB Cloud Services
  1. Home
  2. > Blogs
  3. > TiDB
  4. > Introducing Foreign Keys and more: Exploring New Features in TiDB v8.5.0

Introducing Foreign Keys and more: Exploring New Features in TiDB v8.5.0

Explore the latest features in TiDB v8.5.0, including support for Foreign Keys, improved performance, and enhanced security for modern database management.

Abishek S January 31, 2025

Subscribe for email updates

TiDB v8.5.0 introduces powerful enhancements to scalability, performance, and security, along with the key features like accelerated table creation, MVCC in-memory engine and client-side encryption. These updates strengthen TiDB’s ability to handle complex workloads, ensuring reliability and efficiency for diverse database needs.

 

Scalability

 

Schema Cache Memory Limit (GA):

 

In certain SaaS scenarios, where the number of tables can reach hundreds of thousands or even millions, schema metadata may consume a substantial amount of memory. Enabling this feature allows TiDB to utilize the Least Recently Used (LRU) algorithm to cache and evict schema metadata, effectively optimizing memory usage.

 

Starting from v8.4.0, this feature is enabled by default with a default value of 512 MiB. You can adjust it as needed using the variable tidb_schema_cache_size.

 

Active PD Follower (GA):

 

In TiDB clusters with a large number of Regions, the PD leader may face high CPU usage due to the overhead of handling heartbeats and scheduling tasks, potentially leading to PD service unavailability. To ensure high availability, TiDB v7.6.0 introduced Active PD Follower as an experimental feature. 

 

In v8.5.0, this feature becomes generally available (GA). You can enable it by setting the system variable pd_enable_follower_handle_region to ON. Once enabled, TiDB distributes Region information requests evenly across all PD servers, allowing PD followers to handle these requests and alleviating CPU pressure on the PD leader.

 

Performance

 

Accelerated Table Creation (GA):

 

TiDB v7.6.0 introduces accelerated table creation as an experimental feature by the system variable tidb_ddl_version and renamed to tidb_enable_fast_create_table in v8.0.0. This feature becomes generally available in v8.5.0 and is enabled by default. It significantly reduces data migration and cluster initialization time by enabling rapid creation of millions of tables.

 

MVCC In-Memory Engine (GA):

 

When records are frequently updated, or TiDB needs to retain historical versions for extended periods (e.g., 24 hours), the accumulation of MVCC versions can negatively impact scan performance. The TiKV MVCC in-memory engine addresses this by caching the latest MVCC versions in memory and employing a fast GC mechanism to remove historical versions from memory.

 

Starting with v8.5.0, TiKV introduces the MVCC in-memory engine. If excessive accumulation of MVCC versions in the TiKV cluster degrades scan performance, you can enable this engine to improve scan efficiency by configuring the in-memory-engine.enable parameter in TiKV settings.

 

Reliability

 

Support limiting the maximum rate and concurrency of requests processed by PD:

 

When a sudden influx of requests is sent to PD, it can lead to high workloads and potentially affect PD performance. Starting from v8.5.0, you can use pd-ctl to limit the maximum rate and concurrency of requests processed by PD, improving its stability.

 

SQL

 

Foreign Key (GA):

 

Starting from v8.5.0, foreign key constraints become generally available, enabling relationships between tables with support for cascading updates and deletions. This simplifies data management and ensures consistency, especially for applications with complex relationships.

 

ADMIN ALTER DDL JOBS statement to support online modification of DDL jobs :

 

Starting from v8.3.0, the variables tidb_ddl_reorg_batch_size and tidb_ddl_reorg_worker_cnt can be set at the session level. Consequently, setting these variables globally no longer impacts all running DDL jobs. 

 

With TiDB v8.5.0, the new ADMIN ALTER DDL JOBS statement allows you to adjust the variable values of specific DDL jobs online. This provides greater flexibility in balancing resource consumption and performance. The changes apply only to individual jobs, ensuring a more controllable impact. 

 

For example:

 

  • Adjusts the tidb_ddl_reorg_worker_cnt of the specified DDL job online : 

        ADMIN ALTER DDL JOBS job_id THREAD = 8;

 

  • Adjusts the tidb_ddl_reorg_batch_size of the specified job online : 

        ADMIN ALTER DDL JOBS job_id BATCH_SIZE = 256;

 

  • Adjusts the write traffic of index data to each TiKV node online : 

        ADMIN ALTER DDL JOBS job_id MAX_WRITE_SPEED = '200MiB';

 

Click here to know more about TiDB's DDL jobs.

 

Security

 

BR now supports client-side encryption for both full backup and log backup data (GA):

 

Client-side encryption for full backup data, introduced as an experimental feature in TiDB v5.3.0, allows backup data to be encrypted on the client side using a custom fixed key.

 

Similarly, client-side encryption for log backup data, introduced as an experimental feature in TiDB v8.4.0, enables log backup data to be encrypted on the client side through the following methods:

 

  • Using a custom fixed key
  • Using a master key stored on a local disk
  • Using a master key managed by a Key Management Service (KMS)

 

Starting with v8.5.0, both encryption features are generally available (GA), providing enhanced security for client-side data encryption.

 

TiKV encryption at rest supports Google Cloud KMS (GA):

 

TiKV's encryption at rest now fully supports Google Cloud KMS for master key management, providing enhanced security and seamless integration. Configure the feature by setting the security.encryption.master-key section in the TiKV configuration.

 

Conclusion

 

With significant new features and numerous bug fixes, TiDB v8.5.0 delivers improved performance, enhanced security, and streamlined operations. This release further solidifies TiDB as a reliable choice for modern database challenges. To know more about TiDB v8.5.0 refer the TiDB document.

 


 

Author Bio

Abishek S

Abishek S is a MongoDB and TiDB Certified DBA at Mafiree with strong expertise in distributed databases, TiDB architecture, and cross-database consistency tools. He writes technical content focused on practical database solutions, data consistency verification, replication strategies, and performance optimization for modern data platforms. His work helps engineers and DBAs improve reliability and efficiency in real-world database operations.

Leave a Comment

Related Blogs

Manage Large Data Import in TiDB

Efficiently import massive datasets into TiDB clusters using TiDB Lightning for faster analytics and scalable performance.

  1271 views
Automate Expired Data Deletion in TiDB with TTL

Say goodbye to manual cleanup! Learn how TiDB’s TTL feature automates expired data deletion and keeps your database lean and efficient.

  1807 views
Sync-Diff-Inspector: Your Go-To Tool for Verifying Data Consistency Across TiDB and MySQL

A powerful tool to compare, detect, and fix data inconsistencies across distributed databases—ensure accurate migrations and seamless replication with Sync-Diff-Inspector.

  1646 views
The Feature You’ve Been Looking For – Speed Up Your Queries with TiDB Cached Tables!

Boost database performance with TiDB cached tables—reduce latency and accelerate read-heavy queries.

  1523 views
Optimizing Data Storage with TiDB Placement Rules

Leveraging TiDB’s Placement Rules for Optimal Performance

  1653 views

Subscribe for email updates

Get in touch with us

Highlights

More than 6000 Servers Monitored

Happy Clients

Certified DBAs

24 x 7 x 365 Support

PCI

Database Services

MySQL MongoDB PostgreSQL SQL Server Aerospike Clickhouse TiDB MariaDB Columnstore

Quick Links

Careers Blog Contact Privacy Policy Disclaimer Policy

Contacts

Linkedin Mafiree Facebook Mafiree Twitter Mafiree

Nagercoil Office

Miru IT Park, Vallankumaranvillai,

Nagercoil, Tamilnadu - 629 002.

Bangalore Office

Unit 303, Vanguard Rise,

5th Main, Konena Agrahara,

Old Airport Road, Bangalore - 560 017.

Call: +91 6383016411

Email: sales@mafiree.com


Copyright © - All Rights Reserved - Mafiree