neo4j-rest-graphdb와 함께 작업 중이며 Cypher를 사용하여 간단한 노드 결과를 가져 오려고했습니다.Rlow GraphDb를 사용할 때 Slow Cypher neo4j 결과가 발생했습니다.
CypherParser parser = new CypherParser();
ExecutionEngine engine = new ExecutionEngine(graphDbService);
Query query = parser.parse("START referenceNode = node (0) " +
"MATCH referenceNode-[PRODUCTS_REFERENCE]->products-[PRODUCT]->product " +
"RETURN product.productName " +
"ORDER BY product.productId " +
"SKIP 20"
"LIMIT 10");
ExecutionResult result = engine.execute(query);
Iterator<Map<String, Object>> iterator = result.javaIterator();
결과를 반복하는 가장 좋은 방법은 무엇입니까? 마지막 줄은 내 서비스가 ~ 6 초 동안 멈추게합니다. 결국 iterator가 없으면 애플리케이션은 매우 조용합니다. 나는 또한 webadmin cypher 터미널을 시험해 보았다. 결과는 50ms 이내에 가져왔다. 내가 뭐 잘못하고 있니?
그래, 내가 찾던 무엇을! :) 고마워요. Micahel !!! – Alebon