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

SessionPool在循环查询中阻塞 #546

Closed
momoco530 opened this issue Sep 14, 2023 · 2 comments
Closed

SessionPool在循环查询中阻塞 #546

momoco530 opened this issue Sep 14, 2023 · 2 comments

Comments

@momoco530
Copy link

String qryNgql = "match (v:dev) return v;";
ResultSet devResutSet = sessionPool.execute(qryNgql );
for (int i = 0; i < trDeviceResutSet.rowsSize(); i++) {
ResultSet.Record record = devResutSet .rowValues(i);
Node node = record .get(0).asNode();
String vId = node.getId().asString();

String qryOtherNgql= "match (v:link{dev_id:'" + vId + "'}) return v;";
ResultSet otherResutSet = sessionPool.execute(qryOtherNgql);                  // 会在此处随机阻塞住

......

}

@momoco530
Copy link
Author

已解决

@momoco530
Copy link
Author

已解决

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

1 participant