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

TuGraph是否支持函数式调用 #420

Closed
huzhihao1 opened this issue Feb 27, 2024 · 3 comments
Closed

TuGraph是否支持函数式调用 #420

huzhihao1 opened this issue Feb 27, 2024 · 3 comments

Comments

@huzhihao1
Copy link

huzhihao1 commented Feb 27, 2024

请教下,使用TuGraph restful接口查询耗时长,是否有类似于Neo4j的函数式接口。

环境:Docker镜像
CPU:未限制
磁盘:vda1
点:15w
边:140w
4跳查询返回结果规模:31.5KByte,返回点个数:161070
查询耗时:5+秒
查询SDK:JavaSDK:com.antgroup.tugraph,version:1.4.1

@jiazhenjiang
Copy link
Contributor

您说的函数式接口能举个具体的例子么?

@huzhihao1
Copy link
Author

huzhihao1 commented Feb 27, 2024

抱歉,我记错了Neo4j没有函数式接口。有个问题请教下您,TuGraph除了使用RPC调用,还有没有其他更快的查询方式?

当前我们这边有个图数据库,类似于调用UT方法的方式查询,同样的数据规模和查询条件,耗时在几百毫秒。和现有用单机版TuGraph查询耗时5+秒差别很大,而且这个5秒的查询耗时很不正常。

而且还有个点想问下,当前查询点的全部属性和查询点的单个属性,耗时差别也很大,请教下您,这个是什么原因?

查询使用的是三方SDK工具:JavaSDK:com.antgroup.tugraph,version:1.4.1
一、当前TuGraph单机查询点的全部属性
1跳
length 7424110byte
返回点个数: 18940
耗时: 1748ms
2跳
length 2427941byte
返回点个数: 12580
耗时: 497ms
3跳
length 2051598byte
返回点个数: 12580
耗时: 502ms
4跳
length 31518642byte
返回点个数: 161070
耗时: 6074ms

二、当前TuGraph单机查询点的一个属性
1跳
length 947001byte
返回点个数: 18940
耗时: 328ms
2跳
length 629001byte
返回点个数: 12580
耗时: 201ms
3跳
length 629001byte
返回点个数: 12580
耗时: 246ms
4跳
length 8053501byte
返回点个数: 161070
耗时: 2035ms

@ljcui
Copy link
Collaborator

ljcui commented Feb 28, 2024

现象知道了,加下钉钉群,拉个小群直接聊。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants