Which type of triggers in MarkLogic?

When we want to automate some tasks when some CRUD operation performs on the Document. We use the trigger in Marklogic.


There are two types of triggers in Marklogic.

1. Pre-commit Trigger
2. Post-commit Trigger

1. Pre-commit trigger: Trigger fire before the transaction commits, if any error is found during transaction commit, the trigger is rolled back.

2. Post-commit trigger: Trigger fire after the transaction commits, if any error is found during transaction commit, the trigger is not rolled back.

Comments

Popular posts from this blog

What is universal index and range index?

How to measure query Xquery performance in Marklogic?

The security model in Marklogic