我正在运行表现良好的两部分 Neo4j 搜索。但是,ExecutionResult 集的实际解析比 Cypher 查询花费的时间长 8 或 10 倍。我正在循环执行 ExecutionResult 映射,如下所示:
result = engine.execute("START facility=node({id}), service=node({serviceIds}) WHERE facility-->service RETURN facility.name as facilityName, service.name as serviceName", cypherParams);
for ( Map<String, Object> row : result )
{
sb.append((String) row.get("facilityName")+" : " + (String) row.get("serviceName") + "<BR/>" );
}
有什么建议可以加快速度吗?谢谢