
新特性
Placement Rules in SQL
小表缓存
内存悲观锁
Top SQL
TiDB Enterprise Manager
一 Placement Rules in SQL
Placement Rules in SQL 之前会遇到的问题
比如 北京的业务需要访问 T2 和 T3表 ,但是T3表的数据在纽约
纽约的业务需要问访T4 T5 T6表 ,但是这些表都在同一个TIKV上 ,没有办法资源隔离。
东京的业务使用的T7 表很中澳 需要多个副本 ,T8是冷数据 。

Placement Rules in SQL 之后

使用 Placement Rules in SQL的步骤
步骤一 TIkV实例设置标签

步骤二 创建Placement Policy
步骤三 指定对象的Placement Policy
Placement Rules in SQL 的应用

二 热点小表缓存
热点小表的特点
- 数据量不大
- 不怎么写
- 但是读取很频繁

热点小表缓存原理
表的大小 :64M以下
将user表放到缓存中 : alter table user cache;
tidb_table_cache_lease = 5 租约为5秒 。在租约内 ,只能读不能写


三 悲观锁

四 TOP SQL
提高可观测性 定位慢SQL能力

五 TIEM
