github 0 码力 |
22 页 |
1.01 MB
| 2 年前 3 # TiDB 2.1.7
Kyle Kingsbury
2019-06-12
TiDB is a distributed, auto-sharded SQL database based on Google's Percolator model. Despite promising snapshot isolation, TiDB 2.1.7 through 3.0.0-beta.1-40 thanks to two auto-retry mechanisms which blindly re-applied updates when a transaction conflicted. TiDB also supports a select ... for update statement which mostly, but not entirely, prevents write skew disabled, TiDB 2.1.8 through 3.0.0-beta.1-40 passed our tests for snapshot isolation and single-key linearizability. 3.0.0-rc.2, which disables auto-retry by default, also passes. Finally, TiDB has a theoretical 0 码力 |
9 页 |
141.29 KB
| 1 年前 3 ## TiDB and Amazon Aurora
Compare / Contrast / Combine
Ed Huang, CTO @ PingCAP
h@pingcap.com
PingCAP TiDB
TiDB Community Slack Channel https://pingcap.com/tidbslack/

## TiDB is not a database middleware
||Sharding middleware|TiDB|
|---|---|---|
|ACID Transaction Capacity (Good performance)|Few TBs|200 TB+|
## TiDB architecture

TiDB Server
## Storage Physical Stack
Highly layered 0 码力 |
57 页 |
2.52 MB
| 1 年前 3 1_1.jpg)
## Go in TiDB
## 申砾@PingCAP
## GopherChina 2017
## Agenda
• About Me
• What is TiDB
• TiDB Architecture
• SQL Layer Internal
• Golang in TiDB
• Next Step of TiDB
## GopherChina 2017 About Me
• Shen Li (申砾)
• Tech Lead of TiDB, VP of Engineering
• Netease / 360 / PingCAP
• Infrastructure software engineer
GopherChina 2017
## What is TiDB
A Distributed, Consistent, Scalable, SQL idx1: $(10, +\infty)$
GopherChina 2017
## Example - Distributed Physical Plan
Physical Plan on TiDB
Final Aggregate sum(count(c1))
DistSQL Scan
Physical Plan on TiKV
;
## 插件的运行环境
插件没有像 loader 那样的独立运行环境
只能在 webpack 里面运行
## 插件的基本结构
## 基本结构:
class MyPlugin {
apply(compiler) {
compiler.hooks ...
}
});
}
}
module.exports = MyPlugin;
插件使用:
plugins: [ new MyPlugin() ]
## 搭建插件的运行环境
const path = require("path");
const DemoPlugin = require("/plugins/demo-plugin 0 码力 |
29 页 |
4.37 MB
| 2 年前 3 ## TiDB 原理与实战
## About me
● 程序媛, TiDB committer, Go 语言狂热粉
☐ 主要研究方向为分布式系统,坚信分布式系统才是未来
● 目前在 PingCAP 就职
☐ 15 年中旬加入 PingCAP
☐ 主要参与模块为 TiDB 的 online DDL, SQL 优化器, 各种必要的功能改进以及性能提升
之前在京东就职
☐ 12 年末入职,学习 lixia@pingcap.com
○ GitHub: https://github.com/zimulala
## Agenda
• A brief introduction of NewSQL
• TiDB
• Plan optimization
• Dist SQL
• Online DDL
• TiKV
• Feelings
• Q & A
## A brief introduction Google F1
TiDB
## TiDB and TiKV
MySQL Client
MySQL Client
MySQL Client
MySQL Client
MySQL Client
MySQL Client
MySQL Protocol
MySQL Protocol
MySQL Protocol
TiDB
TiDB
TiDB
SQL Layer
TiDB SQL Layer 0 码力 |
23 页 |
496.41 KB
| 1 年前 3 ## TiDB 中文技术 文档
书栈(BookStack.CN)
## 目录
致谢
README
TDB简介
TDB快速入门指南
TDB用户文档
TiDB数据库管理
TiDB服务
TiDB进程启动参数
TiDB系统数据库
TiDB系统变量
TiDB专用系统变量和语法
TiDB访问权限管理 TiDB访问权限管理
TiDB用户账户管理
使用加密连接
SQL优化
理解TiDB执行计划
统计信息
语言结构
字面值
数据库、表、索引、列和别名
关键字和保留字
用户变量
表达式语法
注释语法
字符集和时区
字符集支持
字符集配置
时区
数据类型
TiDB 事务隔离级别
错误码与故障诊断
与 MySQL 兼容性对比
TiDB 内存控制文档
Bit-value Literals
Boolean Literals
Date 和 Time 字面值
十六进制的字面值
NULL Values
数值字面值
字符串字面值
TiDB 用户文档 0 码力 |
444 页 |
4.89 MB
| 1 年前 3
|