Privileges need to disable triggers database in Marklogic -


i have around 500k documents in marklogic database.. , have cpf enabled. if want mass delete or mass update (don;t want cpf triggered update) on documents..

i call marklogic administrator, has access administrator page (:8001), , ask him change triggers database none, , stuff , again ask administrator change original triggers database.. reason disable triggers database if don't, takes long time process request

i thinking there must better way :) calling ml administrator every-time this. following of questions have, can assist me this

  1. what privilege needed if want programmatic (xquery) disable triggers database , re-enable it. helpful if can provide exact xquery calls disabling , enabling triggers database ?
  2. is there better way ? doing way doing ?
  3. is there anyway can tell cpf not run given update on document, other me assigning custom flag , in cpf check flag , nothing if flag enabled ?

thanks

(3) run triggers domain scoped collection rather uri. remove document triggers, should able remove collection (even in bulk). documents no longer under domain of cpf. logic when commit done removes collection, out of domain in question.

see here: https://docs.marklogic.com/guide/cpf.pdf
page 29
section 5.3.2
2/3 way down page:

note: because domains collection scope can continue next phase of processing if new or modified document part of collection, can use collections way of moving documents in , out of different sets of processing.

there's logic mean - move document out of processing scope removing collection - delete.


Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -