Stored Procedure in Neo4j

I wanted to know if there is any equivalent of Neo4j stored procedure? When I explored this, I came across events , but I found them more as triggers than stored procedures.

+6
source share
3 answers

Stored procedures are available as CALLABLE features from Cypher since version 3.0

EDIT

Since Neo4J 3.0 was released in April'16, the stored procedure has become the official Apache 2.0 repository.

http://neo4j-contrib.imtqy.com/neo4j-apoc-procedures/

Available procedures range from data manipulation / import to spatial and complex graph algorithms (e.g. Page rank, Dijkstra, Community Discovery, centrality centrality, centrality proximity, etc.)

+3
source

There are two ways to expand the Neo4j server:

Both methods require writing code in the JVM (or another JVM language), package the jar file, and deploy it to the Neo4j server.

+4
source

My answer here does not answer the question directly (Stefan's answer is suitable for this). With that said, if any of you are considering writing server-side plugins (to get the Stored Proc behavior) before your project is actually used in production (which at the time of this writing is the vast majority of the Neo4j user base), I highly recommend no .

Server plugins add architectural complexity to your project. JVM developers will be required to support them. Deploying or updating them can be complicated, and the associated source control methodologies are not intuitive. Neo4j does not require circuit migration, which makes it easier to work as a developer. Adding server plug-ins will no longer give you this benefit, and since this is not the main use case of Neo4j, you will get a little help from the development community, and improvements and bug fixes related to this feature will receive lower priority from the Neo4j Team.

And all this would be possible for a slight increase in productivity, or none at all.

“Stored procedures” (or the use of server plugins per se) are an important feature in the context of performance tuning, but if your team is still two guys in the garage, don’t even think about taking this path.

+1
source

All Articles