CPJ-data

Results issues of CPJ-data

### Expected behavior 期望表现 使用g.V().has("id","1223") 可查出该点信息。 ### Actual behavior 实际表现 g.V().has("eid","1702") Error! Unknown index type 'UNIQUE' 使用g.V().hasLabel("person").has("eid","1702") Error! Unknown index type 'UNIQUE' ### Steps to reproduce the problem 复现步骤 1....

bug

### Expected behavior 期望表现 前提条件:在建立schema时,如标签person schema.vertexLabel("person") .properties("uid","eid", "name", "age", "city") .ifNotExist() .create(); 不设置主键primaryKeys("uid") 数据库自动生成ID值:如——>280390937614483456 期望:通过g.V('280390937614483456')可以查到该点 如设置主键primaryKeys("uid") uid=123456 数据库自动生成ID值:如——>1:123456 通过g.V('1:123456')可以查到该点 ### Actual behavior 实际表现 数据库自动生成ID值:如——>280390937614483456 实际:通过g.V('280390937614483456')查不到该点 { "id": "5330571c-aa4f-4ac3-85c6-fb3bdf8fbb18", "data": [...

测试了唯一索引,在schema中对于某个ID,如uid设置唯一索引,但是在插入数据的时候可以重复进行插入 ——>如该数据 Vertex marko = graph.addVertex(T.label, "person", "name", "杨过", "eid", "1702","age", 28, "city", "唐宋元明清","uid","1702"); 第一次插入图后,再次插入同一条数据也是可以插入成功并不会报错唯一索引的错误,而且界面上的显示也是多条一样的数据(插入多少次就显示多少条数据)。 定义了唯一索引的字段,通过唯一索引的字段可以进行点的查询,重复数据不会报唯一索引错误。 定义唯一索引: schema.indexLabel("personByUid") .onV("person") .by("uid") .unique() .secondary() .ifNotExist() .create();

代码如下: HugeClient hugeClient = new HugeClient("http://127.0.0.1:8080", "hugegraph"); SchemaManager schema = hugeClient.schema(); schema.propertyKey("weight").asDouble().ifNotExist().create(); schema.propertyKey("name").asText().ifNotExist().create(); schema.vertexLabel("user") .properties("name") .primaryKeys("name") .ifNotExist() .create(); schema.edgeLabel("like") .sourceLabel("user") .targetLabel("user") .properties("weight") .ifNotExist() .create(); schema.indexLabel("likeByWeight") .onE("like") .by("weight") .unique() .ifNotExist() .create();...

报错信息: Caused by: com.baidu.hugegraph.rest.ClientException: HugeGraphServer API version must be >= 0.44 to support unique index, but current HugeGraphServer API version is: 0.38.0.0 at com.baidu.hugegraph.client.RestClient.checkApiVersion(RestClient.java:80) at com.baidu.hugegraph.api.schema.IndexLabelAPI.create(IndexLabelAPI.java:49) at com.baidu.hugegraph.driver.SchemaManager.addIndexLabel(SchemaManager.java:187) at com.baidu.hugegraph.driver.SchemaManager.addIndexLabel(SchemaManager.java:182)...

麻烦各位大佬了,感谢...... hugegraph:0.10.4 Cassandra:3.11.5 启动:常规脚本启动 hugegraph:0.9.2可以加载Cassandra但无法创建unique约束。 报错信息: ``` 2020-03-02 17:54:00 4569 [main] [ERROR] com.baidu.hugegraph.dist.HugeGraphServer [] - HugeRestServer start error: com.baidu.hugegraph.backend.BackendException: The backend store of 'hugegraph' has not been initialized at com.baidu.hugegraph.core.GraphManager.checkBackendVersionOrExit(GraphManager.java:206)...

server:hugegraph0.9 存储后端:Cassandra 错误信息: ``` com.baidu.hugegraph.rest.ClientException: Failed to do request at com.baidu.hugegraph.rest.RestClient.request(RestClient.java:128) at com.baidu.hugegraph.rest.RestClient.post(RestClient.java:151) at com.baidu.hugegraph.rest.RestClient.post(RestClient.java:133) at com.baidu.hugegraph.api.gremlin.GremlinAPI.post(GremlinAPI.java:41) at com.baidu.hugegraph.driver.GremlinManager.execute(GremlinManager.java:51) at com.baidu.hugegraph.api.gremlin.GremlinRequest$Builder.execute(GremlinRequest.java:55) at com.qydata.cace.beam.biz.kg.HugeGraphHistoryHoldingPath$6.apply(HugeGraphHistoryHoldingPath.java:366) at com.qydata.cace.beam.biz.kg.HugeGraphHistoryHoldingPath$6.apply(HugeGraphHistoryHoldingPath.java:120) at com.qydata.cace.beam.biz.kg.huge.HugeGraphSyncFunction.lambda$processElement$0(HugeGraphSyncFunction.java:75) at org.springframework.retry.support.RetryTemplate.doExecute(RetryTemplate.java:287) at...

inactive

各位大佬好,烦请各位大佬解答一下 正式服务:普通盘,24核128G 测试服务:虚拟SSD,16核16G 本机:普通盘1T,运行内存16G 本机:SSD盘256G,运行内存16G 本机测试跑本地代码测试十分钟,提供一下数据参考 1、正式服务:普通盘,24核128G 16个线程进行写图,跑1天17小时写入数据84W不到。 查看后台日志,在查询过程中耗时大概是27000~28000ms之间 2、测试服务:虚拟SSD,16核16G 16个线程进行写图,跑1天写入数据66W不到。 查看后台日志,在查询过程中耗时大概是6000~8000ms之间 3、本机:普通盘1T,运行内存16G 10个线程操作写图,十分钟数据4.2W不到,前面两分钟大概写入速度每分钟1W左右,随着数据量增加,后五分钟写入大概0.5W 4、本机:SSD盘256G,运行内存16G 10个线程操作写图,十分钟数据4.6W不到,前面3分钟大概写入速度每分钟1W左右,前五分钟大概是每分钟0.8W左右,随着数据量增加,后五分钟写入大概0.5W 本机测试在后台没得日志显示,根据每分钟查看g.E().count()进行统计的,随着数据量增加g.E().count()查询时间越来越慢。 注:代码中查询点边的语句,使用的是gremlin语法操作。 注:后端存储Cassandra,集群部署 根据这四种情况分析 1、主要的瓶颈是在查询这块耗时过长,尤其是在正式查询一次耗时28S 2、硬件问题--普通盘对于图谱的操作性能影响较大 3、使用查询语法是否有问题,导致查询时间过长 如:gremlinManager.gremlin("g.V().has(" + "\"" + eid + "\","...

inactive