jokerCoCo commented on issue #2081: URL: https://github.com/apache/incubator-hugegraph/issues/2081#issuecomment-1376617881
> 这其实也是我的问题所在,正常来讲我线程池最大并发量为10,创建的任务个数最多的时候也就8个。我代码大体实现如下: 1、创建一个与数据库连接的工具类,内部hugeClient在运行时是一直保持连接状态的 2、当dao层查询时都会调用hugeClient对象创建一个gremlinManager对象执行查询任务,并发场景下最多创建20个gremlinManager对象,因为我一个线程内会查询两次数据库。 3、查询语句如下: g.V().has(’age‘, gte(threshold)).out().path() ,通过预编译方式查询 目前一次查询结果大概在1000多条。 我在想是不是因为hugeClient这个连接一直在导致异步任务数不断累加造成的? -- 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]
