← Winnitude! Search  ·  Reader Mode (748 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
GITHUB · 233 LINKS

GitHub - pingcap/tidb: TiDB is built for agentic workloads that grow unpredictably, with ACID guarantees and native support for transactions, analytics, and vector search. No data silos. No noisy neighbors. No infrastructure ceiling.

Repository navigation

tidb
Public

About

TiDB is built for agentic workloads that grow unpredictably, with ACID guarantees and native support for transactions, analytics, and vector search. No data silos. No noisy neighbors. No infrastructure ceiling.

www.tidb.io/

Topics

agent agent-context agent-memory agentic ai cloud-native database distributed-database distributed-transactions go hacktoberfest htap memory mysql mysql-compatibility scale serverless sql tidb

Resources

Readme Apache-2.0 license

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy Activity Custom properties

Stars

40.8k stars

Watchers

1.2k watching

Forks

6.3k forks Report repository
Branches

Tags
Go to Branches page Go to Tags page

Latest commit

 

History


29,146 Commits
View commit history for this file.

Folders and files

Name Name Last commit message Last commit date
.agents/ skills .agents/ skills    
.claude/ skills .claude/ skills    
.github .github    
LICENSES LICENSES    
br br    
build build    
cmd cmd    
docs docs    
dumpling dumpling    
hooks hooks    
lightning lightning    
pkg pkg    
tests tests    
tools tools    
.bazelrc .bazelrc    
.bazelversion .bazelversion    
.codecov.yml .codecov.yml    
.dockerignore .dockerignore    
.editorconfig .editorconfig    
.gitattributes .gitattributes    
.gitignore .gitignore    
.gitmodules .gitmodules    
.golangci.yml .golangci.yml    
.pre-commit-config.yaml .pre-commit-config.yaml    
AGENTS.md AGENTS.md    
BUILD.bazel BUILD.bazel    
CLAUDE.md CLAUDE.md    
CODE_OF_CONDUCT.md CODE_OF_CONDUCT.md    
CONTRIBUTING.md CONTRIBUTING.md    
DEPS.bzl DEPS.bzl    
Dockerfile Dockerfile    
Dockerfile.enterprise Dockerfile.enterprise    
Jenkinsfile Jenkinsfile    
LICENSE LICENSE    
MODULE.bazel MODULE.bazel    
Makefile Makefile    
Makefile.common Makefile.common    
OWNERS OWNERS    
OWNERS_ALIASES OWNERS_ALIASES    
PLANS.md PLANS.md    
README.md README.md    
SECURITY.md SECURITY.md    
ThirdPartyNotices.txt ThirdPartyNotices.txt    
WORKSPACE WORKSPACE    
WORKSPACE.patchgo WORKSPACE.patchgo    
checklist.md checklist.md    
ci.md ci.md    
code_review_guide.md code_review_guide.md    
errors.toml errors.toml    
go.mod go.mod    
go.sum go.sum    
llms.txt llms.txt    
roadmap.md roadmap.md    

Repository files navigation


TiDB

TiDB (/'taɪdiːbi:/, "Ti" stands for Titanium) is an open-source, cloud-native, distributed SQL database designed for high availability, horizontal and vertical scalability, strong consistency, and high performance.

Key Features

  • Distributed Transactions : TiDB uses a two-phase commit protocol to ensure ACID compliance, providing strong consistency. Transactions span multiple nodes, and TiDB's distributed nature ensures data correctness even in the presence of network partitions or node failures.

  • Horizontal and Vertical Scalability : TiDB can be scaled horizontally by adding more nodes or vertically by increasing resources of existing nodes, all without downtime. TiDB's architecture separates computing from storage, enabling you to adjust both independently as needed for flexibility and growth.

  • High Availability : Built-in Raft consensus protocol ensures reliability and automated failover. Data is stored in multiple replicas, and transactions are committed only after writing to the majority of replicas, guaranteeing strong consistency and availability, even if some replicas fail. Geographic placement of replicas can be configured for different disaster tolerance levels.

  • Hybrid Transactional/Analytical Processing (HTAP) : TiDB provides two storage engines: TiKV, a row-based storage engine, and TiFlash, a columnar storage engine. TiFlash uses the Multi-Raft Learner protocol to replicate data from TiKV in real time, ensuring consistent data between the TiKV row-based storage engine and the TiFlash columnar storage engine. The TiDB Server coordinates query execution across both TiKV and TiFlash to optimize performance.

  • Cloud-Native : TiDB can be deployed in public clouds, on-premises, or natively in Kubernetes. TiDB Operator helps manage TiDB on Kubernetes, automating cluster operations, while TiDB Cloud provides a fully-managed service for easy and economical deployment, allowing users to set up clusters with just a few clicks.

  • MySQL Compatibility : TiDB is compatible with MySQL 8.0, allowing you to use familiar protocols, frameworks and tools. You can migrate applications to TiDB without changing any code, or with minimal modifications. Additionally, TiDB provides a suite of data migration tools to help easily migrate application data into TiDB.

  • Open Source Commitment : Open source is at the core of TiDB's identity. All source code is available on GitHub under the Apache 2.0 license, including enterprise-grade features. TiDB is built with the belief that open source enables transparency, innovation, and collaboration. We actively encourage contributions from the community to help build a vibrant and inclusive ecosystem, reaffirming our commitment to open development and accessibility for everyone.

Quick Start

  1. Start a TiDB cluster.

    • On local playground . To start a local test cluster, refer to the TiDB quick start guide .

    • On Kubernetes . TiDB can be easily deployed in a self-managed Kubernetes environment or Kubernetes services on public clouds using TiDB Operator. For more details, refer to the TiDB on Kubernetes quick start guide .

    • Using TiDB Cloud (recommended) . TiDB Cloud offers a fully managed version of TiDB with a free plan, no credit card required, so you can get a free cluster in seconds and start easily: Sign up for TiDB Cloud .

  2. Learn about TiDB SQL: To explore the SQL capabilities of TiDB, refer to the TiDB SQL documentation .

  3. Use a MySQL driver or an ORM to Build an App with TiDB .

  4. Explore key features, such as data migration , changefeed , vector search , HTAP , disaster recovery , etc.

Need Help?

Architecture

Learn more details about TiDB architecture in our Docs .

Contributing

TiDB is built on a commitment to open source, and we welcome contributions from everyone. Whether you are interested in improving documentation, fixing bugs, or developing new features, we invite you to shape the future of TiDB.

License

TiDB is under the Apache 2.0 license. See the LICENSE file for details.

See Also

Acknowledgments

About

TiDB is built for agentic workloads that grow unpredictably, with ACID guarantees and native support for transactions, analytics, and vector search. No data silos. No noisy neighbors. No infrastructure ceiling.

www.tidb.io/

Topics

agent agent-context agent-memory agentic ai cloud-native database distributed-database distributed-transactions go hacktoberfest htap memory mysql mysql-compatibility scale serverless sql tidb

Resources

Readme Apache-2.0 license

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy Activity Custom properties

Stars

40.8k stars

Watchers

1.2k watching

Forks

6.3k forks Report repository

Releases

Packages

Used by

Contributors

Languages