SkrDrag commented on issue #2407:
URL: 
https://github.com/apache/incubator-hugegraph/issues/2407#issuecomment-1876578412

   > _🤖_
   > 
   > 
你好,@SkrDrag!我是[Dosu](https://dosu.dev),一个能帮助你解决问题、回答疑问,甚至帮助你成为贡献者的机器人。在等待人类维护者回应的时候,我会在这边帮助你。让我们一起解决问题吧!
   > 
   > 
根据我对HugeGraph数据库的理解,数据确实是在过滤之前读入内存的。这可以从`queryAdjacentVertices`和`queryEdges`方法中看出。这些方法从图数据库中获取顶点和边,并将它们存储在内存中的迭代器中。然后,如果有任何需要应用的条件(通过`withVertexCondition`和`withEdgeCondition`方法检查),则使用`TraversalUtil.filterResult`方法在内存中过滤数据。
   > 
   > 
然而,提供的代码并没有显示出使用多线程过滤大量数据的证据。根据给定的上下文,过滤过程似乎是一个单线程操作。用于过滤的`TraversalUtil.filterResult`方法在提供的代码中没有显示,但在给定的上下文中没有任何迹象表明它使用了多线程。
   > 
   > 
关于`queryAdjacentVertices`方法的工作方式,它在HugeGraph数据库中用于查询给定一组边的相邻顶点。它接收一个边的迭代器作为输入,并返回一个顶点的迭代器。在数据过滤过程中,此方法可以用来过滤出与给定的一组边不相连的顶点。
   > 
   > 
`queryEdges`方法在HugeGraph数据库中用于根据给定的查询查询边。它在数据过滤过程中起着关键作用,因为它帮助检索匹配查询中指定条件的边。
   > 
   > 以上是我根据当前提供的上下文信息得出的结论。如果你有更多的代码片段或者更具体的使用场景,我可能能提供更详细的解答。
   > 
   > ## Sources
   > * 
[hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/traversal/optimize/HugeVertexStep.java](https://github.com/apache/incubator-hugegraph/blob/master/hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/traversal/optimize/HugeVertexStep.java)
   > * 
[hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/backend/tx/GraphTransaction.java](https://github.com/apache/incubator-hugegraph/blob/master/hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/backend/tx/GraphTransaction.java)
   > 
   > This response is meant to be useful and save you time. It is **not meant 
to be a precise solution**, but rather a starting point for your own research.
   > 
   > Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is 
irrelevant.
   > 
   > If you want to continue the conversation, start your reply with @dosu-bot.
   
   我想对filter进行修改,使用多线程对大量数据进行过滤,我该在哪里修改代码比较合适呢?


-- 
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