Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
05-01-2022 07:44 PM
Everytime I modify the trigger,I have to remove the existed apoc.trigger and add a new one...
It's little bored and troublesome to do this repeatable prosedure
Is there any way to modify the old one or by any other easier way to do that? It bothers me a lot recently...
Solved! Go to Solution.
05-26-2022 05:31 AM
You can set a config apoc.trigger.refresh=<numberOfMilliseconds>
(default is 60000ms),
to refresh your overwritten triggers every n milliseconds.
It's not easy to find in the documentation indeed,
because it's here (in apoc.trigger.add specific page)
but not here (in the overview).
I just added a pull request which also updates the home page.
05-26-2022 05:31 AM
You can set a config apoc.trigger.refresh=<numberOfMilliseconds>
(default is 60000ms),
to refresh your overwritten triggers every n milliseconds.
It's not easy to find in the documentation indeed,
because it's here (in apoc.trigger.add specific page)
but not here (in the overview).
I just added a pull request which also updates the home page.
05-29-2022 05:54 AM
oh thank you~I finally got the response.
You're right bro, I haven't noticed this parameter...I'm confused whether this influence the speed of the graph processing or not? In other words,will it always refresh apoc until I close the datebase?
Thanks again~
05-30-2022 01:26 AM
Well, the refresh will check that the values of the apoc.trigger.list
coincide with the actual ones (which are actually nodes placed in the system database), and if necessary, update them.
But it is a light operation (unless you have a huge number of triggers).
It's like doing a SET
of a node for each trigger.
05-30-2022 07:26 AM
okay, I understood, thank you for explanation~
All the sessions of the conference are now available online