You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
张献维 3977957e13 初始化 1 day ago
.github 初始化 1 day ago
LICENSES 初始化 1 day ago
bindinfo 初始化 1 day ago
cmd 初始化 1 day ago
config 初始化 1 day ago
ddl 初始化 1 day ago
distsql 初始化 1 day ago
docs 初始化 1 day ago
domain 初始化 1 day ago
errno 初始化 1 day ago
executor 初始化 1 day ago
expression 初始化 1 day ago
hooks 初始化 1 day ago
infoschema 初始化 1 day ago
kv 初始化 1 day ago
lock 初始化 1 day ago
meta 初始化 1 day ago
metrics 初始化 1 day ago
owner 初始化 1 day ago
planner 初始化 1 day ago
plugin 初始化 1 day ago
privilege 初始化 1 day ago
server 初始化 1 day ago
session 初始化 1 day ago
sessionctx 初始化 1 day ago
statistics 初始化 1 day ago
store 初始化 1 day ago
structure 初始化 1 day ago
table 初始化 1 day ago
tablecodec 初始化 1 day ago
telemetry 初始化 1 day ago
tests/cncheckcert 初始化 1 day ago
tidb-server 初始化 1 day ago
tools/check 初始化 1 day ago
types 初始化 1 day ago
util 初始化 1 day ago
.codecov.yml 初始化 1 day ago
.dockerignore 初始化 1 day ago
.editorconfig 初始化 1 day ago
.gitattributes 初始化 1 day ago
.gitignore 初始化 1 day ago
CHANGELOG.md 初始化 1 day ago
CODE_OF_CONDUCT.md 初始化 1 day ago
CONTRIBUTING.md 初始化 1 day ago
CONTRIBUTORS.md 初始化 1 day ago
Dockerfile 初始化 1 day ago
Jenkinsfile 初始化 1 day ago
LICENSE 初始化 1 day ago
Makefile 初始化 1 day ago
README.md 初始化 1 day ago
checklist.md 初始化 1 day ago
checkout-pr-branch.sh 初始化 1 day ago
circle.yml 初始化 1 day ago
code_review_guide.md 初始化 1 day ago
errors.toml 初始化 1 day ago
gitcookie.sh 初始化 1 day ago
go.mod 初始化 1 day ago
profile 初始化 1 day ago
staticcheck.conf 初始化 1 day ago

README.md

LICENSE Language Build Status Go Report Card GitHub release GitHub release date CircleCI Status Coverage Status GoDoc

What is TiDB?

TiDB ("Ti" stands for Titanium) is an open-source NewSQL database that supports Hybrid Transactional and Analytical Processing (HTAP) workloads. It is MySQL compatible and features horizontal scalability, strong consistency, and high availability.

  • Horizontal Scalability

    TiDB expands both SQL processing and storage by simply adding new nodes. This makes infrastructure capacity planning both easier and more cost-effective than traditional relational databases which only scale vertically.

  • MySQL Compatible Syntax

    TiDB acts like it is a MySQL 5.7 server to your applications. You can continue to use all of the existing MySQL client libraries, and in many cases, you will not need to change a single line of code in your application. Because TiDB is built from scratch, not a MySQL fork, please check out the list of known compatibility differences.

  • Distributed Transactions with Strong Consistency

    TiDB internally shards table into small range-based chunks that we refer to as "regions". Each region defaults to approximately 100MiB in size, and TiDB uses a Two-phase commit internally to ensure that regions are maintained in a transactionally consistent way.

  • Cloud Native

    TiDB is designed to work in the cloud -- public, private, or hybrid -- making deployment, provisioning, operations, and maintenance simple.

    The storage layer of TiDB, called TiKV, became a Cloud Native Computing Foundation member project in 2018. The architecture of the TiDB platform also allows SQL processing and storage to be scaled independently of each other in a very cloud-friendly manner.

  • Minimize ETL

    TiDB is designed to support both transaction processing (OLTP) and analytical processing (OLAP) workloads. This means that while you may have traditionally transacted on MySQL and then Extracted, Transformed and Loaded (ETL) data into a column store for analytical processing, this step is no longer required.

  • High Availability

    TiDB uses the Raft consensus algorithm to ensure that data is highly available and safely replicated throughout storage in Raft groups. In the event of failure, a Raft group will automatically elect a new leader for the failed member, and self-heal the TiDB cluster without any required manual intervention. Failure and self-healing operations are also transparent to applications.

For more details and latest updates, see official TiDB blog.

Adopters

View the current list of in-production TiDB adopters here.

Roadmap

Read the Roadmap.

Quick start

Read the Quick Start Guide, which includes deployment methods using Ansible, Docker, and Kubernetes.

Getting Help

Documentation

Architecture

architecture

Contributing

contribution-map

Contributions are welcomed and greatly appreciated. See CONTRIBUTING.md for details on submitting patches and the contribution workflow. For more contributing information, click on the contributor icon above.

License

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

Acknowledgments