I have an after create trigger that reads the data from the row inserted, parse it and add it into another table.
But when this trigger fails, my whole insert fails. My question is
Why is after create trigger considered as part of the insert operation even though it gets fired after the insert is done and constraints and validations are checked?
Is there any way to detach the execution of trigger from the insert operation?
The failure could be something like a data constraint violation on the other table that the trigger tries to insert to. Even if there is no failure, the transaction time could be improved if the trigger executes outside of the insert transaction.