@@ -142,13 +142,25 @@ const sidebar = {
142142 { text : '80 · 慢查询排查方法论' , link : '/cases/optimizer/80-slow-query-diagnosis' } ,
143143 ] ,
144144 } ,
145+ {
146+ text : '八、TiDB 分布式优化' ,
147+ collapsed : false ,
148+ items : [
149+ { text : '81 · TiDB EXPLAIN 算子树解读' , link : '/cases/tidb/81-tidb-explain-tree' } ,
150+ { text : '82 · 协处理器下推优化' , link : '/cases/tidb/82-coprocessor-pushdown' } ,
151+ { text : '83 · AUTO_RANDOM 避免写热点' , link : '/cases/tidb/83-auto-random' } ,
152+ { text : '84 · TiDB 统计信息管理' , link : '/cases/tidb/84-tidb-statistics' } ,
153+ { text : '85 · TiDB 事务模型对比' , link : '/cases/tidb/85-tidb-transaction' } ,
154+ { text : '86 · IndexLookUp 回表与覆盖索引' , link : '/cases/tidb/86-index-lookup' } ,
155+ ] ,
156+ } ,
145157 ] ,
146158}
147159
148160// ────────────────────────────── 站点配置 ──────────────────────────────
149161export default defineConfig ( {
150162 title : 'SQL Lab' ,
151- description : '一套能跑、能量化对比的 MySQL 优化实战案例集' ,
163+ description : '一套能跑、能量化对比的 MySQL + TiDB 优化实战案例集' ,
152164 lang : 'zh-CN' ,
153165 lastUpdated : true ,
154166 cleanUrls : true ,
@@ -166,19 +178,19 @@ export default defineConfig({
166178 [ 'link' , { rel : 'icon' , href : '/sql-lab/favicon.svg' } ] ,
167179
168180 // SEO: 关键词
169- [ 'meta' , { name : 'keywords' , content : 'MySQL优化,SQL优化,EXPLAIN,索引优化,MySQL 8.0,数据库性能,Docker,慢查询,事务锁,查询改写' } ] ,
181+ [ 'meta' , { name : 'keywords' , content : 'MySQL优化,SQL优化,EXPLAIN,索引优化,MySQL 8.0,数据库性能,Docker,慢查询,事务锁,查询改写,TiDB,分布式数据库,NewSQL,TiKV,coprocessor ' } ] ,
170182
171183 // Open Graph(社交分享卡片)
172184 [ 'meta' , { property : 'og:site_name' , content : 'SQL Lab' } ] ,
173185 [ 'meta' , { property : 'og:type' , content : 'website' } ] ,
174- [ 'meta' , { property : 'og:title' , content : 'SQL Lab · 80 个能跑的 MySQL 优化实战案例' } ] ,
175- [ 'meta' , { property : 'og:description' , content : '一套能跑、能量化对比的 MySQL 优化实战案例集。80 个精选案例,7 大场景,Docker 一键复现,bad/good EXPLAIN 量化对比。' } ] ,
186+ [ 'meta' , { property : 'og:title' , content : 'SQL Lab · 86 个能跑的 MySQL/TiDB 优化实战案例' } ] ,
187+ [ 'meta' , { property : 'og:description' , content : '一套能跑、能量化对比的 MySQL 优化实战案例集。86 个精选案例,8 大场景,覆盖 MySQL 5.7/8.0 和 TiDB ,Docker 一键复现,bad/good EXPLAIN 量化对比。' } ] ,
176188 [ 'meta' , { property : 'og:url' , content : 'https://slowleelab.github.io/sql-lab/' } ] ,
177189 [ 'meta' , { property : 'og:image' , content : 'https://slowleelab.github.io/sql-lab/og-image.svg' } ] ,
178190
179191 // Twitter Card
180192 [ 'meta' , { name : 'twitter:card' , content : 'summary_large_image' } ] ,
181- [ 'meta' , { name : 'twitter:title' , content : 'SQL Lab · 80 个能跑的 MySQL 优化实战案例' } ] ,
193+ [ 'meta' , { name : 'twitter:title' , content : 'SQL Lab · 86 个能跑的 MySQL/TiDB 优化实战案例' } ] ,
182194 [ 'meta' , { name : 'twitter:description' , content : '一套能跑、能量化对比的 MySQL 优化实战案例集。Docker 一键复现,bad/good EXPLAIN 量化对比。' } ] ,
183195 [ 'meta' , { name : 'twitter:image' , content : 'https://slowleelab.github.io/sql-lab/og-image.svg' } ] ,
184196 ] ,
0 commit comments