Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mergev250 #910

Merged
merged 153 commits into from
Aug 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
153 commits
Select commit Hold shift + click to select a range
22dd66e
Update deploy.yaml
whitewum Aug 19, 2021
8c449da
Update deploy.yaml
whitewum Aug 19, 2021
3686692
Delete header.html
whitewum Aug 19, 2021
6323f68
fix-brokenlink
foesa-yang Aug 19, 2021
b13a4a8
Merge branch 'v2.5.0' of https://github.com/vesoft-inc/nebula-docs-cn…
foesa-yang Aug 19, 2021
52da740
Update mkdocs.yml
whitewum Aug 19, 2021
11185fe
Update README.md
whitewum Aug 19, 2021
3c39a05
Update README.md
whitewum Aug 19, 2021
1066d62
Update 2.install-nebula-graph-by-rpm-or-deb.md
foesa-yang Aug 19, 2021
38a268c
Update 4.date-and-time.md
foesa-yang Aug 19, 2021
28c5229
Update mkdocs.yml
cooper-lzy Aug 19, 2021
66586fb
Update requirements.txt
whitewum Aug 19, 2021
7b0a717
Update 2.install-nebula-graph-by-rpm-or-deb.md
randomJoe211 Aug 19, 2021
db4ece7
Update show hosts results (#882)
randomJoe211 Aug 19, 2021
104d986
Update 6.list.md
foesa-yang Aug 19, 2021
e7ddb2c
Update 2.1.path.md
cooper-lzy Aug 19, 2021
442c23f
Update 2.user-defined-variables.md
foesa-yang Aug 19, 2021
29b7de0
Update 4.pipe.md
foesa-yang Aug 19, 2021
efac6c5
Update 6.set.md
foesa-yang Aug 19, 2021
77acc52
Update 7.string.md
foesa-yang Aug 19, 2021
0e3b2e9
Update 8.list.md
foesa-yang Aug 19, 2021
fb44c64
Update requirements.txt
whitewum Aug 19, 2021
b4c056c
Update 3.date-and-time.md
foesa-yang Aug 19, 2021
3f6d1c5
Update 6.list.md
foesa-yang Aug 19, 2021
ba7e3a6
update (#884)
cooper-lzy Aug 19, 2021
04384e1
Update 3.upsert-edge.md
randomJoe211 Aug 19, 2021
f098b31
update (#885)
cooper-lzy Aug 20, 2021
9d3c213
Update 2.match.md
whitewum Aug 20, 2021
a7ff9d4
Update 8.show-indexes.md (#883)
randomJoe211 Aug 20, 2021
5ef65c4
Update 1.resource-preparations.md
foesa-yang Aug 20, 2021
4063d25
Update mkdocs.yml
whitewum Aug 20, 2021
f48cd14
merge
whitewum Aug 20, 2021
3d1361b
Merge branch 'v2.5.0' of github.com:vesoft-inc/nebula-docs-cn into v2…
whitewum Aug 20, 2021
b1a55b3
add release notes
whitewum Aug 20, 2021
341f352
Update requirements.txt
whitewum Aug 20, 2021
e010ac9
update (#887)
cooper-lzy Aug 20, 2021
ad95ace
add console commands (#888)
cooper-lzy Aug 20, 2021
afcad48
Update 1.authentication.md
whitewum Aug 20, 2021
1eb7e71
Update 1.what-is-nebula-graph.md
whitewum Aug 20, 2021
0c4cf40
Update 2.data-model.md
whitewum Aug 20, 2021
4d51dc9
Update 1.architecture-overview.md
whitewum Aug 20, 2021
fa682d7
Update 2.install-nebula-graph-by-rpm-or-deb.md
whitewum Aug 20, 2021
9534a60
Update 3.deploy-nebula-graph-with-docker-compose.md
whitewum Aug 20, 2021
324e60f
Update 4.nebula-graph-crud.md
whitewum Aug 20, 2021
30df39f
Update 4.nebula-graph-crud.md
whitewum Aug 20, 2021
a2dd753
Update 2.user-defined-variables.md
whitewum Aug 20, 2021
672899c
update
foesa-yang Aug 20, 2021
f768fe1
Merge branch 'v2.5.0' of https://github.com/vesoft-inc/nebula-docs-cn…
foesa-yang Aug 20, 2021
a39fefa
Update 4.nebula-graph-crud.md
whitewum Aug 20, 2021
c901c19
Update 4.nebula-graph-crud.md
whitewum Aug 20, 2021
b877b3d
Update 1.overview.md
whitewum Aug 20, 2021
b44aadc
Update 3.graph-patterns.md
whitewum Aug 20, 2021
0cb5f4b
Update 1.install-nebula-graph-by-compiling-the-source-code.md
foesa-yang Aug 20, 2021
5ff53c3
Merge branch 'v2.5.0' of https://github.com/vesoft-inc/nebula-docs-cn…
foesa-yang Aug 20, 2021
33f5b72
Update 3.graph-patterns.md
whitewum Aug 20, 2021
282f153
Update ngql-style-guide.md
whitewum Aug 20, 2021
9f5714a
Update releasenote.md
whitewum Aug 20, 2021
10f8465
Update ngql-style-guide.md
whitewum Aug 20, 2021
5b06a42
Update 4.date-and-time.md
whitewum Aug 20, 2021
b6d0efd
Update ngql-style-guide.md
whitewum Aug 20, 2021
a8aad9d
Update 1.composite-queries.md
whitewum Aug 20, 2021
45b870e
Modify doc (#889)
cooper-lzy Aug 20, 2021
feac970
Update 1.overview.md
whitewum Aug 20, 2021
092d7a6
Update 1.overview.md
whitewum Aug 20, 2021
cd5a10c
Update 1.composite-queries.md
whitewum Aug 20, 2021
e811062
Update 4.date-and-time.md
whitewum Aug 20, 2021
855d497
Update 4.job-statements.md
whitewum Aug 20, 2021
11e182f
Update 4.br-restore-data.md
whitewum Aug 20, 2021
8e9c966
Update README.md
whitewum Aug 20, 2021
db1089d
Update README.md
whitewum Aug 20, 2021
d5cb8e2
Update mkdocs.yml
cooper-lzy Aug 23, 2021
868072c
Update ex-ug-import-from-kafka.md (#890)
cooper-lzy Aug 23, 2021
8b4274a
Update st-ug-deploy.md
hetao92 Aug 23, 2021
31f8d6b
Update 2.deploy-dashboard.md
hetao92 Aug 23, 2021
49898a4
Update 4.storage-config.md
whitewum Aug 23, 2021
3dacbb4
Update st-ug-deploy.md
foesa-yang Aug 23, 2021
701101e
Update 1.get-subgraph.md (#891)
cooper-lzy Aug 23, 2021
6ae11da
Update 2.deploy-dashboard.md
foesa-yang Aug 23, 2021
bb31488
Update 2.deploy-dashboard.md
foesa-yang Aug 23, 2021
9d97dd2
Update nebula-algorithm.md
cooper-lzy Aug 23, 2021
38dc3ff
Update 2.install-nebula-graph-by-rpm-or-deb.md
foesa-yang Aug 23, 2021
e8b52de
Update ex-ug-parameter.md
cooper-lzy Aug 23, 2021
53b9385
update (#892)
cooper-lzy Aug 23, 2021
155524e
Create 2.deploy-dashboard.md
cooper-lzy Aug 23, 2021
ae0fdf3
Update st-ug-deploy.md
foesa-yang Aug 23, 2021
72601d2
Update 3.br-backup-data.md
whitewum Aug 23, 2021
6a868dd
Update source_connect-to-nebula-graph.md
foesa-yang Aug 23, 2021
9a33201
Update source_connect-to-nebula-graph.md
foesa-yang Aug 23, 2021
49222df
Update 2.find-path.md
cooper-lzy Aug 23, 2021
c7d4fd8
Clarify index selection behavior
randomJoe211 Aug 23, 2021
7e6d1dd
Update 1.overview.md
foesa-yang Aug 23, 2021
66b3298
String writing operations (#894)
randomJoe211 Aug 23, 2021
227371c
Update mkdocs.yml (#895)
Sophie-Xie Aug 23, 2021
3f9f77b
Merge branch 'v2.5.0' of https://github.com/vesoft-inc/nebula-docs-cn…
foesa-yang Aug 23, 2021
80c0a6c
Update 6.eco-tool-version.md (#896)
Sophie-Xie Aug 23, 2021
6c4b4f1
Update 2.install-nebula-graph-by-rpm-or-deb.md
foesa-yang Aug 23, 2021
4565d5b
Update mind-map.md
foesa-yang Aug 23, 2021
c71c9d8
Update 1.resource-preparations.md
foesa-yang Aug 23, 2021
44ae560
Update 2.deploy-dashboard.md
NicolaCage Aug 24, 2021
08ad7b4
Update 6.eco-tool-version.md (#897)
Sophie-Xie Aug 24, 2021
3b2b810
Update 1.resource-preparations.md
foesa-yang Aug 24, 2021
5ce8745
Add compatibility note for index selection (#898)
randomJoe211 Aug 24, 2021
e3c8b27
Delete header.html
whitewum Aug 24, 2021
81c165c
Update 2.install-nebula-graph-by-rpm-or-deb.md
whitewum Aug 24, 2021
c85e824
list supported property types (#901)
randomJoe211 Aug 24, 2021
ccb1920
Update 2.install-nebula-graph-by-rpm-or-deb.md
cooper-lzy Aug 24, 2021
f468935
Update mkdocs.yml
foesa-yang Aug 24, 2021
f140a77
Update 6.eco-tool-version.md
foesa-yang Aug 24, 2021
a84d01d
Update 6.eco-tool-version.md (#902)
Sophie-Xie Aug 24, 2021
1e8954d
Update releasenote.md (#903)
cooper-lzy Aug 24, 2021
67b9882
Update releasenote.md
cooper-lzy Aug 24, 2021
8e3f786
Update 4.nebula-graph-crud.md
cooper-lzy Aug 24, 2021
d39d678
Update 1.install-nebula-graph-by-compiling-the-source-code.md
foesa-yang Aug 24, 2021
c64a340
Update 6.eco-tool-version.md
cooper-lzy Aug 24, 2021
f314e4e
Update README.md
whitewum Aug 24, 2021
8bf516a
Update 2.deploy-dashboard.md
cooper-lzy Aug 24, 2021
821c86a
Update 1.install-nebula-graph-by-compiling-the-source-code.md
foesa-yang Aug 24, 2021
795650d
Update 2.deploy-dashboard.md
cooper-lzy Aug 24, 2021
04331ce
Update 2.deploy-dashboard.md
cooper-lzy Aug 24, 2021
ed05ad0
Update 2.deploy-dashboard.md
cooper-lzy Aug 24, 2021
0d2078a
Update 2.install-nebula-graph-by-rpm-or-deb.md
cooper-lzy Aug 25, 2021
19aab8e
Specify the path when installing, then you also need to specify the p…
study-day Aug 25, 2021
19ea356
It is recommended to back up the configuration file before updating (…
study-day Aug 25, 2021
d1b2ce7
Update 1.install-nebula-graph-by-compiling-the-source-code.md
foesa-yang Aug 25, 2021
b3c4399
Update 3.deploy-nebula-graph-with-docker-compose.md
foesa-yang Aug 25, 2021
829ddad
Update 3.deploy-nebula-graph-with-docker-compose.md
foesa-yang Aug 25, 2021
fbaae66
Update ex-ug-deploy.md
foesa-yang Aug 25, 2021
1867cfc
Update return.md
cooper-lzy Aug 25, 2021
161146a
Update st-ug-deploy.md
foesa-yang Aug 25, 2021
ebe7bf2
Update return.md
cooper-lzy Aug 25, 2021
afe06c3
Update 4.nebula-graph-crud.md
foesa-yang Aug 25, 2021
1f43c77
Update 1.overview.md
foesa-yang Aug 25, 2021
53b1a71
Update order-by.md
cooper-lzy Aug 25, 2021
ba53962
Update 2.match.md
cooper-lzy Aug 25, 2021
f001cc9
Update 1.composite-queries.md
foesa-yang Aug 25, 2021
c0ef955
update (#906)
cooper-lzy Aug 25, 2021
48a8d7e
Update source_manage-service.md
foesa-yang Aug 25, 2021
8f17618
Optimize the reuse method and resolve some issues (#907)
randomJoe211 Aug 25, 2021
2444db0
Fix format issues (#908)
randomJoe211 Aug 25, 2021
a5d3dbb
Update st-ug-what-is-graph-studio.md
foesa-yang Aug 25, 2021
73a2b99
Update st-ug-what-is-graph-studio.md
foesa-yang Aug 25, 2021
5d5aa97
Update st-ug-what-is-graph-studio.md
foesa-yang Aug 25, 2021
68cf5e8
Update st-ug-what-is-graph-studio.md
foesa-yang Aug 25, 2021
7abbfd3
Update st-ug-what-is-graph-studio.md
foesa-yang Aug 25, 2021
ec77b3d
Update st-ug-deploy.md
foesa-yang Aug 26, 2021
d79d25e
Update 1.what-is-nebula-graph.md
foesa-yang Aug 26, 2021
ef57b4f
Update 3.role-list.md (#909)
cooper-lzy Aug 26, 2021
0ead04b
Update 2.management-user.md
cooper-lzy Aug 26, 2021
73e4755
Update 3.go.md
whitewum Aug 26, 2021
67c8fb6
Update 3.property-reference.md
whitewum Aug 26, 2021
a8326b5
Merge branch 'v2.5.0'
whitewum Aug 26, 2021
451d68f
Merge branch 'v2.5.0'
whitewum Aug 26, 2021
43e7c65
Merge branch 'master' into mergev250
whitewum Aug 26, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 3 additions & 8 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
deploy:
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
Expand All @@ -15,19 +15,17 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: '3.7'
python-version: '3.8'
architecture: 'x64'

- name: apt install
run: |
sudo apt update -y
sudo apt install -y $(cat pkglist.txt)

- name: Install dependencies
run: |
pip install --upgrade pip
pip install -r ./requirements.txt

- name: set LANG
run: sh lang-zh.sh

Expand All @@ -37,17 +35,14 @@ jobs:
- name: mike list delete
run: |
mike list

- name: Mike Deploy master
run: |
mike deploy master -p --rebase
mike list

- name: show git branch
run: |
git branch
git checkout gh-pages

- name: Compress
run: |
tar -vczf nebula-docs.tar.gz master versions.json *.html
Expand Down Expand Up @@ -79,4 +74,4 @@ jobs:
# uses: peaceiris/actions-gh-pages@v3
# with:
# github_token: ${{ secrets.DEPLOY_TOKEN }}
# publish_dir: ./site
# publish_dir: ./site
4 changes: 2 additions & 2 deletions docs-2.0/1.introduction/1.what-is-nebula-graph.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ Nebula Graph支持严格的角色访问控制和LDAP(Lightweight Directory Acc

### 生态多样化

Nebula Graph开放了越来越多的原生工具,例如[Nebula Graph Studio](https://github.com/vesoft-inc/nebula-web-docker)、[Nebula Console](https://github.com/vesoft-inc/nebula-console)、[Nebula Exchange](https://github.com/vesoft-inc/nebula-spark-utils/tree/v2.0.0/nebula-exchange)等。
Nebula Graph开放了越来越多的原生工具,例如[Nebula Graph Studio](https://github.com/vesoft-inc/nebula-studio)、[Nebula Console](https://github.com/vesoft-inc/nebula-console)、[Nebula Exchange](https://github.com/vesoft-inc/nebula-spark-utils/tree/v2.0.0/nebula-exchange)等。

此外,Nebula Graph还具备与Spark、Flink、HBase等产品整合的能力,在这个充满挑战与机遇的时代,大大增强了自身的竞争力。

### 兼容openCypher查询语言

Nebula Graph查询语言,也称为nGQL,是一种声明性的、兼容openCypher的文本查询语言,易于理解和使用。详细语法请参见[nGQL指南](../3.ngql-guide/1.nGQL-overview/1.overview.md)。
Nebula Graph 查询语言,简称为 nGQL,是一种声明性的、部分兼容 openCypher 的文本查询语言,易于理解和使用。详细语法请参见[nGQL指南](../3.ngql-guide/1.nGQL-overview/1.overview.md)。

### 面向未来硬件,读写平衡

Expand Down
2 changes: 1 addition & 1 deletion docs-2.0/1.introduction/2.1.path.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@

## 视频

用户也可以观看视频了解Path的相关概念
用户也可以观看视频了解路径的相关概念

[Nebula Algorithm](https://www.bilibili.com/video/BV1Uf4y1t72L)(03分09秒)

Expand Down
6 changes: 3 additions & 3 deletions docs-2.0/1.introduction/2.data-model.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# 数据模型

本文介绍Nebula Graph的数据模型。数据模型是一种组织数据并说明它们如何相互关联的模型。
本文介绍Nebula Graph的数据模型。数据模型是一种组织数据并说明它们如何相互关联的模型(schema)

## 数据结构
## 数据模型

Nebula Graph数据模型使用6种基本的数据结构
Nebula Graph数据模型使用6种基本的数据模型

- 图空间(Space)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 架构总览
# Nebula Graph 架构总览

Nebula Graph 由三种服务构成:Graph 服务、Meta 服务和 Storage 服务,是一种存储与计算分离的架构。

Expand Down Expand Up @@ -28,7 +28,9 @@ Nebula Graph 采用计算存储分离架构。Graph 服务负责处理计算请

- 节约成本

计算存储分离架构能够提高资源利用率,而且可根据业务需求灵活控制成本。如果使用 [Nebula Graph Cloud](https://cloud.nebula-graph.com.cn/ "Nebula Graph Cloud official website"),可以进一步节约前期成本。
计算存储分离架构能够提高资源利用率,而且可根据业务需求灵活控制成本。

<!--如果使用 [Nebula Graph Cloud](https://cloud.nebula-graph.com.cn/ "Nebula Graph Cloud official website"),可以进一步节约前期成本。-->

- 更多可能性

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Storage服务是由nebula-storaged进程提供的,用户可以根据场景配

- Consensus层

Storage服务的中间层,实现了[Multi Group Raft](#raft协议),保证强一致性和高可用性。
Storage服务的中间层,实现了[Multi Group Raft](#multi_group_raft),保证强一致性和高可用性。

- Store Engine层

Expand Down
4 changes: 4 additions & 0 deletions docs-2.0/2.quick-start/2.install-nebula-graph.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# 步骤1:安装Nebula Graph

{% include "/source_install-nebula-graph-by-rpm-or-deb.md" %}
<!-- The line above is for content reusing. The source file is in the docs-2.0/reuse directory. -->
5 changes: 2 additions & 3 deletions docs-2.0/2.quick-start/3.connect-to-nebula-graph.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# 步骤3:连接Nebula Graph

--8<-- "source_connect-to-nebula-graph.md"

<!-- This part is reused from the docs-2.0/reuse directory. To modify it, update the source file. -->
{% include "/source_connect-to-nebula-graph.md" %}
<!-- The line above is for content reusing. The source file is in the docs-2.0/reuse directory. -->
50 changes: 14 additions & 36 deletions docs-2.0/2.quick-start/4.nebula-graph-crud.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@

## 检查Nebula Graph集群的机器状态

首先建议检查机器状态,确保所有的Storage服务连接到了Meta服务。执行命令`SHOW HOSTS`查看机器状态。
!!! Note

首先建议检查机器状态,确保所有的Storage服务连接到了Meta服务。执行命令`SHOW HOSTS`查看机器状态。

```ngql
nebula> SHOW HOSTS;
Expand All @@ -49,7 +51,9 @@ Got 4 rows (time spent 1061/2251 us)

### 异步实现创建和修改

Nebula Graph中执行如下创建和修改操作,是异步实现的,需要在下一个心跳周期才同步数据。
!!! caution

Nebula Graph中执行如下创建和修改操作,是异步实现的。要在**下一个**心跳周期之后才能生效;否则访问会报错。

- `CREATE SPACE`
- `CREATE TAG`
Expand Down Expand Up @@ -165,7 +169,7 @@ CREATE {TAG | EDGE} {<tag_name> | <edge_type>}(<property_name> <data_type>

### 示例

创建Tag`player`和`team`,以及Edge type`follow`和`serve`。说明如下表。
创建Tag:`player`和`team`,以及Edge type:`follow`和`serve`。说明如下表。

| 名称 | 类型 | 属性 |
| :--- | :--- | :--- |
Expand All @@ -178,22 +182,14 @@ CREATE {TAG | EDGE} {<tag_name> | <edge_type>}(<property_name> <data_type>
nebula> CREATE TAG player(name string, age int);
Execution succeeded (time spent 20708/22071 us)

Wed, 24 Feb 2021 03:47:01 EST

nebula> CREATE TAG team(name string);
Execution succeeded (time spent 5643/6810 us)

Wed, 24 Feb 2021 03:47:59 EST

nebula> CREATE EDGE follow(degree int);
Execution succeeded (time spent 12665/13934 us)

Wed, 24 Feb 2021 03:48:07 EST

nebula> CREATE EDGE serve(start_year int, end_year int);
Execution succeeded (time spent 5858/6870 us)

Wed, 24 Feb 2021 03:48:16 EST
```

## 插入点和边
Expand Down Expand Up @@ -231,22 +227,14 @@ Wed, 24 Feb 2021 03:48:16 EST
nebula> INSERT VERTEX player(name, age) VALUES "player100":("Tim Duncan", 42);
Execution succeeded (time spent 28196/30896 us)

Wed, 24 Feb 2021 03:55:08 EST

nebula> INSERT VERTEX player(name, age) VALUES "player101":("Tony Parker", 36);
Execution succeeded (time spent 2708/3834 us)

Wed, 24 Feb 2021 03:55:20 EST

nebula> INSERT VERTEX player(name, age) VALUES "player102":("LaMarcus Aldridge", 33);
Execution succeeded (time spent 1945/3294 us)

Wed, 24 Feb 2021 03:55:32 EST

nebula> INSERT VERTEX team(name) VALUES "team200":("Warriors"), "team201":("Nuggets");
Execution succeeded (time spent 2269/3310 us)

Wed, 24 Feb 2021 03:55:47 EST
```

- 插入代表球员和球队之间关系的边。
Expand All @@ -255,22 +243,14 @@ Wed, 24 Feb 2021 03:48:16 EST
nebula> INSERT EDGE follow(degree) VALUES "player100" -> "player101":(95);
Execution succeeded (time spent 3362/4542 us)

Wed, 24 Feb 2021 03:57:36 EST

nebula> INSERT EDGE follow(degree) VALUES "player100" -> "player102":(90);
Execution succeeded (time spent 2974/4274 us)

Wed, 24 Feb 2021 03:57:44 EST

nebula> INSERT EDGE follow(degree) VALUES "player102" -> "player101":(75);
Execution succeeded (time spent 1891/3096 us)

Wed, 24 Feb 2021 03:57:52 EST

nebula> INSERT EDGE serve(start_year, end_year) VALUES "player100" -> "team200":(1997, 2016), "player101" -> "team201":(1999, 2018);
Execution succeeded (time spent 6064/7104 us)

Wed, 24 Feb 2021 03:58:01 EST
```

## 查询数据
Expand All @@ -279,9 +259,9 @@ Wed, 24 Feb 2021 03:48:16 EST

- [FETCH](../3.ngql-guide/7.general-query-statements/4.fetch.md)语句可以获得点或边的属性。

- [LOOKUP](../3.ngql-guide/7.general-query-statements/5.lookup.md)语句是基于[索引](#_14)的,和`WHERE`子句一起使用,查找符合特定条件的数据。
- [LOOKUP](../3.ngql-guide/7.general-query-statements/5.lookup.md)语句是基于[索引](#_12)的,和`WHERE`子句一起使用,查找符合特定条件的数据。

- [MATCH](../3ngql-guide/../3.ngql-guide/7.general-query-statements/2.match.md)语句是查询图数据最常用的,但是它依赖[索引](#_14)去匹配Nebula Graph中的数据模型。
- [MATCH](../3ngql-guide/../3.ngql-guide/7.general-query-statements/2.match.md)语句是查询图数据最常用的,可以灵活的描述各种图模式,但是它依赖[索引](#_12)去匹配Nebula Graph中的数据模型,性能也还需要调优

### nGQL语法

Expand Down Expand Up @@ -416,7 +396,7 @@ Got 1 rows (time spent 2006/2406 us)

!!! Note

`LOOKUP`和`MATCH`的示例在下文的[索引](#_14)部分查看。
`LOOKUP`和`MATCH`的示例在下文的[索引](#_12)部分查看。

## 修改点和边

Expand All @@ -426,7 +406,7 @@ Got 1 rows (time spent 2006/2406 us)

!!! Note

`UPSERT`操作是基于Nebula Graph的分区进行串行操作,所以执行速度比单独执行`INSERT``UPDATE`
每个 partition 内部,`UPSERT` 操作是一个串行操作,所以执行速度比执行 `INSERT``UPDATE` 慢很多。其仅在多个 partition 之间有并发

### nGQL语法

Expand Down Expand Up @@ -459,8 +439,6 @@ Got 1 rows (time spent 2006/2406 us)
nebula> UPDATE VERTEX "player100" SET player.name = "Tim";
Execution succeeded (time spent 3483/3914 us)

Wed, 21 Oct 2020 10:53:14 UTC

nebula> FETCH PROP ON player "player100";
+---------------------------------------------+
| vertices_ |
Expand Down Expand Up @@ -541,11 +519,11 @@ Got 1 rows (time spent 2006/2406 us)

用户可以通过[CREATE INDEX](../3.ngql-guide/14.native-index-statements/1.create-native-index.md)语句为Tag和Edge type增加索引。

### 使用索引必读
!!! caution "使用索引必读"

- `MATCH`和`LOOKUP`语句的执行都依赖索引,但是索引会导致写性能大幅降低(降低90%甚至更多)。请**不要随意**在生产环境中使用索引,除非很清楚使用索引对业务的影响。
`MATCH`和`LOOKUP`语句的执行都依赖索引,但是索引会导致写性能大幅降低(降低90%甚至更多)。请**不要随意**在生产环境中使用索引,除非很清楚使用索引对业务的影响。

- **必须**为已存在的数据重建索引,否则不能索引已存在的数据,导致无法在`MATCH`和`LOOKUP`语句中返回这些数据。更多信息,请参见[重建索引](../3.ngql-guide/14.native-index-statements/1.create-native-index.md)。
**必须**为“已写入但未构建索引”的数据重建索引,否则无法在`MATCH`和`LOOKUP`语句中返回这些数据。参见[重建索引](../3.ngql-guide/14.native-index-statements/4.rebuild-native-index.md)。

### nGQL语法

Expand Down
5 changes: 2 additions & 3 deletions docs-2.0/2.quick-start/5.start-stop-service.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# 步骤2:启动Nebula Graph服务

--8<-- "source_manage-service.md"

<!-- This part is reused from the docs-2.0/reuse directory. To modify it, update the source file. -->
{% include "/source_manage-service.md" %}
<!-- The line above is for content reusing. The source file is in the docs-2.0/reuse directory. -->
8 changes: 5 additions & 3 deletions docs-2.0/20.appendix/0.FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Nebula Graph一直在持续开发,功能或操作的行为可能会有变化
!!! compatibility "`X`版本兼容性"

Nebula Graph {{ nebula.release }} 与 历史版本 (包括 Nebula Graph 1.x 和 2.0-RC) 的数据格式、客户端通信协议均**双向不兼容**。
数据格式升级参见[升级 Nebula Graph 历史版本至 v2.0.0](../4.deployment-and-installation/3.upgrade-nebula-graph/upgrade-nebula-graph-to-200.md)。
数据格式升级参见[升级 Nebula Graph 历史版本至 v2.0.0](../4.deployment-and-installation/3.upgrade-nebula-graph/upgrade-nebula-graph-to-250.md)。
客户端与工具均需要[下载对应版本](../20.appendix/6.eco-tool-version.md)。

!!! compatibility "`Y`版本兼容性"
Expand Down Expand Up @@ -145,7 +145,8 @@ Storage服务在毫秒级时间内多次收到插入或者更新同一点或边

报错原因通常为Graph服务向Storage服务请求了过多的数据,导致Storage服务超时。请尝试以下解决方案:

* [修改配置文件](../5.configurations-and-logs/1.configurations/3.graph-config.md): 在`nebula-graphd.conf`文件中修改`--storage_client_timeout_ms`参数的值,以增加Storage client的连接超时时间。该值的单位为毫秒(ms)。例如,设置`--storage_client_timeout_ms=60000`。如果`nebula-graphd.conf`文件中未配置该参数,请手动增加。提示:请在配置文件开头添加--local_config=true再重启服务。
* [修改配置文件](../5.configurations-and-logs/1.configurations/3.graph-config.md): 在`nebula-graphd.conf`文件中修改`--storage_client_timeout_ms`参数的值,以增加Storage client的连接超时时间。该值的单位为毫秒(ms)。例如,设置`--storage_client_timeout_ms=60000`。如果`nebula-graphd.conf`文件中未配置该参数,请手动增加。
<!--提示:请在配置文件开头添加--local_config=true再重启服务。-->
* 优化查询语句:减少全库扫描型的查询,无论是否用`LIMIT`限制了返回结果的数量;用 GO 语句改写 MATCH 语句(前者有优化,后者无优化)。
* 检查Storaged是否发生的 OOM。(`dmesg |grep nebula`)。
* 为 Storage 服务器提供性能更好的SSD或者内存。
Expand All @@ -171,7 +172,8 @@ Storage服务在毫秒级时间内多次收到插入或者更新同一点或边

- 导入数据时,手动[compaction](../8.service-tuning/compaction.md),加速读的速度。

- 增加Graph服务与Storage服务的RPC连接超时时间,在`nebula-storaged.conf`文件里面修改`--storage_client_timeout_ms`参数的值。该值的单位为毫秒(ms),默认值为60000毫秒。提示:请在配置文件开头添加--local_config=true再重启服务。
- 增加Graph服务与Storage服务的RPC连接超时时间,在`nebula-storaged.conf`文件里面修改`--storage_client_timeout_ms`参数的值。该值的单位为毫秒(ms),默认值为60000毫秒。
<!--提示:请在配置文件开头添加--local_config=true再重启服务。-->

### 如何处理`nebula-storaged.INFO`错误日志`MetaClient.cpp:65] Heartbeat failed, status:Wrong cluster!`或者 `nebula-metad.INFO`含有错误日志`HBProcessor.cpp:54] Reject wrong cluster host "x.x.x.x":9771!`

Expand Down
Loading