Skip to content

Commit

Permalink
fix TuGraph-family#391 : Document Error - Java Client & HA (TuGraph-f…
Browse files Browse the repository at this point in the history
…amily#394)

* fix browser legacy-upload file size limit.

* fix Document Error
  • Loading branch information
gtahoo authored Jan 25, 2024
1 parent 82fe8cc commit 9b220ea
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,11 @@ If the user and password are valid, and the specified graph exists, the import t

## 6. Online full import

Online full import can be used to import a batch of files into an already running TuGraph instance. The execution method is to send an import request to the running TuGraph instance. After receiving the request, the instance first uses offline import (V3) to import the data into a temporary db, and then creates a new subgraph in the instance and stores the data in the temporary db. The files are migrated to the new subgraph, and finally the instance's metadata is refreshed. Compared with online incremental import, online full import has higher performance and is suitable for processing large-scale data. The `lgraph_import --online true --full true` option enables the import tool to fully import online. Like `offline mode`, online mode has its own set of command line options, which can be printed using the `-h, --help` option:
Online full import can be used to import a batch of files into an already running TuGraph instance. The execution method is to send an import request to the running TuGraph instance. After receiving the request, the instance first uses offline import (V3) to import the data into a temporary db, and then creates a new subgraph in the instance and stores the data in the temporary db. The files are migrated to the new subgraph, and finally the instance's metadata is refreshed. Compared with online incremental import, online full import has higher performance and is suitable for processing large-scale data. The `lgraph_import --online true --full true` option enables the import tool to fully import online.

Note: Online full import is not supported in HA (High Availability) mode for now.

Like `offline mode`, online mode has its own set of command line options, which can be printed using the `-h, --help` option:

```shell
$ lgraph_import --online true --full true -h
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ sh local_build.sh

Introduce dependencies
```java
import com.alipay.tugraph.TuGraphDbRpcClient;
import com.antgroup.tugraph.TuGraphDbRpcClient;
```

#### 2.1.1.Instantiate a single node client object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,9 @@ Available command line options:
实例接到请求后先使用离线导入(V3)的方式将数据导入一个临时的db中,然后在实例中新建子图并将临时db的数据文件迁移到新子图中,最后刷新实例的元数据。
相比在线增量导入,在线全量导入的性能更高,适合处理大规模数据。
`lgraph_import --online true --full true`选项使导入工具能够在线全量导入。

注:HA模式下,暂时不支持在线全量导入。

`离线模式`一样,在线模式有自己的命令行选项集,可以使用`-h,--help`选项进行打印输出:

```shell
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ sh local_build.sh
### 2.1.实例化client对象
引入依赖
```java
import com.alipay.tugraph.TuGraphDbRpcClient;
import com.antgroup.tugraph.TuGraphDbRpcClient;
```

#### 2.1.1.实例化单节点client对象
Expand Down

0 comments on commit 9b220ea

Please sign in to comment.