Skip to content

Commit

Permalink
Update kingshard_sharding_introduce.md
Browse files Browse the repository at this point in the history
fix the clerical error
  • Loading branch information
Pythonidea authored Apr 13, 2019
1 parent 53ab18c commit e4a3f66
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doc/KingDoc/kingshard_sharding_introduce.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ kingshard采用(shardKey%子表个数)的方式得到子表下标。优点
nodes: [node1, node2]
#sharding类型
type: hash
#子表个数分布,表示[test_shard_hash_0000, test_shard_hash_0001, test_shard_hash_0002, test_shard_hash_003]在node1上。
#[test_shard_hash_0004, test_shard_hash_0005, test_shard_hash_0006, test_shard_hash_007]在node2上
#子表个数分布,表示[test_shard_hash_0000, test_shard_hash_0001, test_shard_hash_0002, test_shard_hash_0003]在node1上。
#[test_shard_hash_0004, test_shard_hash_0005, test_shard_hash_0006, test_shard_hash_0007]在node2上
locations: [4,4]
-
Expand All @@ -61,8 +61,8 @@ kingshard采用(shardKey%子表个数)的方式得到子表下标。优点
type: range
#子表分布的节点名字
nodes: [node1, node2]
#子表个数分布,表示[test_shard_range_0000, test_shard_range_0001, test_shard_range_0002, test_shard_range_003]在node1上。
#[test_shard_range_0004, test_shard_range_0005, test_shard_range_0006, test_shard_range_007]在node2上
#子表个数分布,表示[test_shard_range_0000, test_shard_range_0001, test_shard_range_0002, test_shard_range_0003]在node1上。
#[test_shard_range_0004, test_shard_range_0005, test_shard_range_0006, test_shard_range_0007]在node2上
locations: [4,4]
#每张子表的记录数。[0,10000)在test_shard_range_0000上,[10000,20000)在test_shard_range_0001上。....
table_row_limit: 10000
Expand Down

0 comments on commit e4a3f66

Please sign in to comment.