在分析一个sql执行计划
1 | explain |
在返回值的extra中看到一个陌生的字眼”Backward index scan”,下面探索下这是个啥
1 | Extra: Using index condition; Backward index scan |
在分析一个sql执行计划
1 | explain |
在返回值的extra中看到一个陌生的字眼”Backward index scan”,下面探索下这是个啥
1 | Extra: Using index condition; Backward index scan |
Table 8.1 EXPLAIN Output Columns
| Column | JSON Name | Meaning |
|---|---|---|
| id | select_id | The SELECT identifier |
| select_type | None | The SELECT type |
| table | table_name | The table for the output row |
| partitions | partitions | The matching partitions |
| type | access_type | The join type |
| possible_keys | possible_keys | The possible indexes to choose |
| key | key | The index actually chosen |
| key_len | key_length | The length of the chosen key |
| ref | ref | The columns compared to the index |
| rows | rows | Estimate of rows to be examined |
| filtered | filtered | Percentage of rows filtered by table condition |
| Extra | None | Additional information |
常见的线性变换平移、缩放、旋转、投影
通常用4x4矩阵表示3D空间中的变换,如平移、旋转、缩放等。
对于一个3D空间中的点A(x, y, z),我们可以使用一个4x1列向量表示它,如下所示:
1 | x |
其中最后一个元素为1,这是为了让矩阵乘法能够正确地进行。
要对这个点进行平移变换,我们可以创建一个如下所示的4x4矩阵:
1 | 1 0 0 tx |
其中(tx, ty, tz)表示平移向量。然后,我们可以将该点与矩阵相乘来进行变换,如下所示:
1 | x' = x + tx |
缩放矩阵
1 | sx 0 0 0 |
缩放后点A为A’
1 | x' = x*sx |
当配置文件中有中文时,springboot服务读取nacos配置启动报错:
1 | ERROR 9740 --- [ main] c.a.c.n.c.NacosPropertySourceBuilder : parse data from Nacos error,dataId:xxxxxxxxxxxxxx.yaml,data:server: |
Maven维护了一个中央仓库repo1.maven.org,
所有第三方库将jar包以及相关信息上传至中央仓库,Maven就可以从中央仓库把所需依赖下载到本地.
被下载过的jar包会被Maven自动缓存在本地目录(用户主目录的.m2目录,~/.m2),
除了第一次编译时因为下载需要时间会比较慢,后续过程有本地缓存则不会重复下载相同的jar包
在用户主目录下进入.m2目录,创建一个settings.xml配置文件
1 | <settings> |
刚开始使用vscode+java时遇到这个问题,Could not find or load main class x,
将源文件加入”Java source paths”并修改文件名与主类名相同后解决了.
这样就能方便地调试运行单个java文件了