Skip to content

Commit

Permalink
Fix vid error (#159)
Browse files Browse the repository at this point in the history
* remove the upgrade file

* Revert "remove the upgrade file"

This reverts commit 76f5fab.

* fix mod + 1 error
  • Loading branch information
whitewum committed Feb 5, 2021
1 parent b70d54d commit c478d57
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/manual-CN/5.appendix/vid-partition.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
`VID` 和分区的对应关系为:

```text
VID mod partition_number = partition ID + 1
partition_ID = VID % partition_number + 1;
```

其中,

- `mod` 是取模操作
- `%` 是取模(Modulo)操作
- `partition_number``VID` 所处图空间的的分区数量,即 [CREATE SPACE](../2.query-language/4.statement-syntax/1.data-definition-statements/create-space-syntax.md) 语句中 `partition_num` 的值。
- `partition ID` 即该 `VID` 所在分区的 ID。
- `partition_ID` 即该 `VID` 所在分区的 ID。

例如,如果有 100 个分区,那 `VID` 为 1、101、1001 的点将存储在同一个分区上。

此外,`partition ID` 和机器之间的对应关系是随机的。因此不可以假设任何两个分区分布在同一台机器上
此外,`partition_ID` 和机器之间的对应关系是随机的。因此不可以假设任何两个分区会保证分布在同一台机器上

0 comments on commit c478d57

Please sign in to comment.