Skip to content

Commit 128ed38

Browse files
committed
[docs feat]vuepress主题升级
1 parent 8d80bad commit 128ed38

File tree

5 files changed

+761
-726
lines changed

5 files changed

+761
-726
lines changed

dist.zip

12.2 MB
Binary file not shown.

docs/.vuepress/styles/palette.scss

+2-16
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,5 @@
11
$theme-color: #2980b9;
22
$sidebar-width: 20rem;
33
$sidebar-mobile-width: 16rem;
4-
$font-family:
5-
-apple-system,
6-
Georgia,
7-
SF Pro Text,
8-
SF Pro Icons,
9-
Helvetica Neue,
10-
PingFangTC-light,
11-
PingFang-SC-light;
12-
$font-family-heading:
13-
-apple-system,
14-
Georgia,
15-
SF Pro Text,
16-
SF Pro Icons,
17-
Helvetica Neue,
18-
PingFangTC-light,
19-
PingFang-SC-light;
4+
$font-family: 'Georgia, -apple-system, "Nimbus Roman No9 L", "PingFang SC", "Hiragino Sans GB", "Noto Serif SC", "Microsoft Yahei", "WenQuanYi Micro Hei", sans-serif';
5+
$font-family-heading: 'Georgia, -apple-system, "Nimbus Roman No9 L", "PingFang SC", "Hiragino Sans GB", "Noto Serif SC", "Microsoft Yahei", "WenQuanYi Micro Hei", sans-serif';

docs/database/mysql/mysql-index.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -407,8 +407,8 @@ CREATE TABLE `user` (
407407
SELECT * FROM user WHERE zipcode = '431200' AND MONTH(birthdate) = 3;
408408
```
409409

410-
- 没有索引下推之前,即使 `zipcode` 字段利用索引可以帮助我们快速定位到 `zipcode = '431200'` 的用户,但我们仍然需要对每一个找到的用户进行回表操作,获取完整的用户数据,再去判断 `MONTH(birthdate) = 12`
411-
- 有了索引下推之后,存储引擎会在使用`zipcode` 字段索引查找`zipcode = '431200'` 的用户时,同时判断`MONTH(birthdate) = 12`。这样,只有同时满足条件的记录才会被返回,减少了回表次数。
410+
- 没有索引下推之前,即使 `zipcode` 字段利用索引可以帮助我们快速定位到 `zipcode = '431200'` 的用户,但我们仍然需要对每一个找到的用户进行回表操作,获取完整的用户数据,再去判断 `MONTH(birthdate) = 3`
411+
- 有了索引下推之后,存储引擎会在使用`zipcode` 字段索引查找`zipcode = '431200'` 的用户时,同时判断`MONTH(birthdate) = 3`。这样,只有同时满足条件的记录才会被返回,减少了回表次数。
412412

413413
![](https://oss.javaguide.cn/github/javaguide/database/mysql/index-condition-pushdown.png)
414414

@@ -427,11 +427,11 @@ MySQL 可以简单分为 Server 层和存储引擎层这两层。Server 层处
427427
没有索引下推之前:
428428

429429
- 存储引擎层先根据 `zipcode` 索引字段找到所有 `zipcode = '431200'` 的用户的主键 ID,然后二次回表查询,获取完整的用户数据;
430-
- 存储引擎层把所有 `zipcode = '431200'` 的用户数据全部交给 Server 层,Server 层根据`MONTH(birthdate) = 12`这一条件再进一步做筛选。
430+
- 存储引擎层把所有 `zipcode = '431200'` 的用户数据全部交给 Server 层,Server 层根据`MONTH(birthdate) = 3`这一条件再进一步做筛选。
431431

432432
有了索引下推之后:
433433

434-
- 存储引擎层先根据 `zipcode` 索引字段找到所有 `zipcode = '431200'` 的用户,然后直接判断 `MONTH(birthdate) = 12`,筛选出符合条件的主键 ID;
434+
- 存储引擎层先根据 `zipcode` 索引字段找到所有 `zipcode = '431200'` 的用户,然后直接判断 `MONTH(birthdate) = 3`,筛选出符合条件的主键 ID;
435435
- 二次回表查询,根据符合条件的主键 ID 去获取完整的用户数据;
436436
- 存储引擎层把符合条件的用户数据全部交给 Server 层。
437437

package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,18 @@
2121
},
2222
"packageManager": "[email protected]",
2323
"dependencies": {
24-
"@vuepress/bundler-vite": "2.0.0-rc.6",
25-
"@vuepress/plugin-copyright": "2.0.0-rc.11",
26-
"@vuepress/plugin-feed": "2.0.0-rc.11",
27-
"@vuepress/plugin-search": "2.0.0-rc.11",
24+
"@vuepress/bundler-vite": "2.0.0-rc.9",
25+
"@vuepress/plugin-copyright": "2.0.0-rc.21",
26+
"@vuepress/plugin-feed": "2.0.0-rc.21",
27+
"@vuepress/plugin-search": "2.0.0-rc.21",
2828
"husky": "9.0.10",
2929
"markdownlint-cli2": "0.12.1",
3030
"mathjax-full": "3.2.2",
3131
"nano-staged": "0.8.0",
3232
"nodejs-jieba": "0.1.2",
3333
"prettier": "3.2.5",
34-
"vue": "3.4.15",
35-
"vuepress": "2.0.0-rc.6",
36-
"vuepress-theme-hope": "2.0.0-rc.22"
34+
"vue": "^3.4.21",
35+
"vuepress": "2.0.0-rc.9",
36+
"vuepress-theme-hope": "2.0.0-rc.32"
3737
}
3838
}

0 commit comments

Comments
 (0)