I have around 500k documents in my marklogic database.. And I have CPF enabled. If I want to do a mass delete or do a mass update (don;t want the CPF triggered for this update) on the documents..
I call my Marklogic administrator, who has access to the administrator page (:8001), and ask him to change the triggers database to none, and then I do my stuff and then again I ask my administrator to change it back the original triggers database.. The reason I disable the triggers database is if I don't, it takes a long time to process my request
I was thinking there must be a better way to do this :) than calling my ML administrator for every-time I do this. Following are some of the questions I have, hopefully someone can assist me with this
- What is the privilege needed if I want to Programmatic (xquery) disable the triggers database and re-enable it. It will be helpful if someone can provide exact xquery calls for disabling and enabling the triggers database ?
- Is there a better way to do this ? than doing the way I am doing ?
- Is there anyway I can tell CPF not to run for a given update on the document, other than me assigning some custom flag and in my CPF I check for this flag and do nothing if the flag is enabled ?
Thanks