Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
01-12-2023 06:05 AM - edited 01-12-2023 06:06 AM
Hello,
as in the subject, I have an issue when I try to modify an existing procedure.
For instance, if I register a new procedure with an error, just like the following one:
CALL apoc.custom.asProcedure('TrialProcedure','MTCH (n {ID:$id} ) RETURN n.ID as element','read',[['element','NUMBER']],[['id','NUMBER']])
even if I later remove it, and register it again after fixing the error in the MATCH statement, the db responds again with the wrong version (the older one).
I also tried to invalidate the query cache by calling
db.clearQueryCaches()
but again the issue was not solved.
The only way to solve it was to reboot nodes one by one.
Is there another way to update it without using this workaround and without disabling the cache at all?
01-12-2023 03:59 PM
You can try this plugin to build your stored procedures in Javascript.
https://github.com/neo4j-field/js-stored-procedures
It removes the need to restart the cluster. You may have to tune the updates detection time as the default value is 1 hour.
01-13-2023 05:29 AM
All the sessions of the conference are now available online