Skip to content

Commit

Permalink
change joinkey to joincolumn (actiontech#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
PanternBao authored and yanhuqing666 committed Apr 19, 2021
1 parent 0697cc0 commit c43bdd8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion 1.config_file/1.8_cache/1.8.1_cache_setting.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
dble的cache使用有如下三类:

* SQLRouteCache:从前端连接收到的SQL以及对应的路由结果 内容: shema_user_SQL -> 具体路由结果RouteResult
* ER_SQL2PARENTID:父子表辅助查询SQL以及对应的路由结果。在插入ER子表的时候需要根据子表joinKey(父表parentKey)计算它应该插入的结点,所以需要辅助路由来查询,然后将辅助路由及对应的结果缓存下来以备下次查询。内容为:schema:select * from 父表 where parentKey = (value of joinKey) -> 对应数据shardingNode
* ER_SQL2PARENTID:父子表辅助查询SQL以及对应的路由结果。在插入ER子表的时候需要根据子表joinColumn(父表parentColumn)计算它应该插入的结点,所以需要辅助路由来查询,然后将辅助路由及对应的结果缓存下来以备下次查询。内容为:schema:select * from 父表 where parentKey = (value of joinColumn) -> 对应数据shardingNode



Expand Down
2 changes: 1 addition & 1 deletion 2.Function/2.14_ER_Sharding.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
要实现这样的ER功能,需要如下配置。
```
<shardingTable name="sales" shardingNode="dn1,dn2" function="sharding" shardingColumn="id">
<childTable name="sales_detail" joinKey="sales_detail_pos_num" parentKey="sales_pos_num"/>
<childTable name="sales_detail" joinColumn="sales_detail_pos_num" parentColumn="sales_pos_num"/>
</table>
```

Expand Down
2 changes: 1 addition & 1 deletion 2.Function/2.16_cache.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ cache 的配置请参见1.6节的内容。
VALUE 是逗号隔开的三个值,分别为cachefactory的name,容量,超时时间。

### 2.16.2 ER子表计算缓存
路由缓存里键值对是[子表对应的joinkey, 路由节点]
路由缓存里键值对是[子表对应的joinColumn, 路由节点]

KEY是pool.ER_SQL2PARENTID

Expand Down

0 comments on commit c43bdd8

Please sign in to comment.