Hello! I have a problem with my plugin. Firstly, i tried work with my database of 150K elements from my app using RestGraphDatabase for connection. Implementation takes about 3 s. Then i built jar and put it in folder "plugins". So now i can use my procedures from plugin, but they work much slower (about 17 s). Can i speed up my plugin and how i can do it? Procedures looks like that:
import org.neo4j.procedure.Context; import org.neo4j.procedure.Description; import org.neo4j.procedure.Name; import org.neo4j.procedure.Procedure; public class MyTraverser{ @Context public GraphDatabaseService db; @Procedure(value = "path") @Description("createPath") public void createPath(@Name("startPoint") String startPoint, @Name("endPoint") String endPoint) { try (Transaction tx = db.beginTx()) { TraversalDescription td = db.traversalDescription().depthFirst() .uniqueness(Uniqueness.NODE_PATH) .relationships(RelationshipTypes.rel, Direction.BOTH) .evaluator(Evaluators.includingDepths(0, 10)); Traverser tr = td .evaluator(Evaluators.includeWhereEndNodeIs(endPoint) .traverse(startPoint); tx.success(); } } } -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.