DDLs that doesn't modify rows like create/drop/truncate table, create/drop database do not need to wait 2 lease on ddl worker, we can safely remove those wait to speed up DDL. But user may create a table, then insert data on that table on another TiDB server, So we need to wait in session. User can set a session variable to skip DDL wait if needed, and there is no risk of data inconsistency. This solution remove the need for user to set lease to zero when loading data, It's much more safe and easy to use.
What is TiDB?
TiDB (The pronunciation is: /'taɪdiːbi:/ tai-D-B, etymology: titanium) is a distributed SQL database. Inspired by the design of Google F1, TiDB supports the best features of both traditional RDBMS and NoSQL.
-
Horizontal scalability
Grow TiDB as your business grows. You can increase the capacity simply by adding more machines. -
Asynchronous schema changes
Evolve TiDB schemas as your requirement evolves. You can add new columns and indices without stopping or affecting the on-going operations. -
Consistent distributed transactions
Think of TiDB as a single-machine RDBMS. You can start a transaction that crosses multiple machines without worrying about consistency. TiDB makes your application code simple and robust. -
Compatible with MySQL protocol
Use TiDB as MySQL. You can replace MySQL with TiDB to power your application without changing a single line of code in most cases. -
Written in Go
Enjoy TiDB as much as we love Go. We believe Go code is both easy and enjoyable to work with. Go makes us improve TiDB fast and makes it easy to dive into the codebase. -
NewSQL over TiKV
Turn TiKV into NewSQL database. -
Multiple storage engine support
Power TiDB with your most favorite engines. TiDB supports many popular storage engines in single-machine mode. You can choose from GolevelDB, LevelDB, RocksDB, LMDB, BoltDB and even more to come.
Roadmap
Read the Roadmap.
Quick start
Read the Quick Start.
Documentation
Architecture
Contributing
Contributions are welcomed and greatly appreciated. See CONTRIBUTING.md for details on submitting patches and the contribution workflow.
Follow us
Mailing list
License
TiDB is under the Apache 2.0 license. See the LICENSE file for details.

