LiJie20190102 opened a new issue, #2187:
URL: https://github.com/apache/incubator-hugegraph/issues/2187

   ### Problem Type (问题类型)
   
   others (please edit later)
   
   ### Before submit
   
   - [X] 我已经确认现有的 [Issues](https://github.com/apache/hugegraph/issues) 与 
[FAQ](https://hugegraph.apache.org/docs/guides/faq/) 中没有相同 / 重复问题 (I have 
confirmed and searched that there are no similar problems in the historical 
issue and documents)
   
   ### Environment (环境信息)
   
   - Server Version: 1.0.0 (Apache Release Version)
   - Backend: RocksDB x nodes, HDD or SSD 
   - OS: xx CPUs, xx G RAM, Ubuntu 2x.x / CentOS 7.x 
   - Data Size:  65608366 vertices, 1806067135 edges <!-- (like 1000W 点, 9000W 
边) -->
   
   
   ### Your Question (问题描述)
   
   I imported 65608366 vertices and 1806067135 edges. When I used 
hugegraph-computer or gremlin to query, the number of query edges was correct. 
However, when I used "hugeClient.traverser().iteratorEdges(shard, 500)" to 
query the number of edges for each shard, and finally accumulated it, I found 
that there was an additional number of edges (1806312225 at this time). I don't 
know why the numbers were inconsistent. Can't we use "hugeClient. traverer(). 
iteratorEdges" to obtain the data size of all edges?
   
    hugegraph-computer log:
   
![image](https://user-images.githubusercontent.com/53458004/229066205-5b39d497-c1d4-4aba-9c2d-1bc430c895e5.png)
   
   gremlin  result:
   
![image](https://user-images.githubusercontent.com/53458004/229067204-87c0718d-5154-446c-a80d-c7c3e3a7f77f.png)
   
   
   "hugeClient.traverser().iteratorEdges(shard, 500)" detail:
   Step 1:Query all shards information   
(http://x.x.x.x:8065/graphs/hugegraph/traversers/edges/shards?split_size=1048576)
   Step 2:Use "hugeClient. traverser(). iteratorEdges" to obtain the number of 
edges for each shard and then sum them。
   result: Number of edges is 1806312225 , not 1806067135 .
   
   
   
   
   ### Vertex/Edge example (问题点 / 边数据举例)
   
   _No response_
   
   ### Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)
   
   ```javascript
   {
       "vertexlabels": [
           {
               "id": 1,
               "name": "person",
               "id_strategy": "CUSTOMIZE_NUMBER",
               "primary_keys": [],
               "nullable_keys": [],
               "index_labels": [
                   "personByAge"
               ],
               "properties": [
                   "id"
               ],
               "status": "CREATED",
               "ttl": 0,
               "enable_label_index": true,
               "user_data": {
                   "~create_time": "2023-03-13 09:52:29.084"
               }
           }
       ]
   }
   
   {
       "edgelabels": [
           {
               "id": 1,
               "name": "friend",
               "source_label": "person",
               "target_label": "person",
               "frequency": "SINGLE",
               "sort_keys": [],
               "nullable_keys": [],
               "index_labels": [],
               "properties": [],
               "status": "CREATED",
               "ttl": 0,
               "enable_label_index": true,
               "user_data": {
                   "~create_time": "2023-03-13 09:52:30.760"
               }
           }
       ]
   }
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to