A trigger may keep firing temporarily after you disable it in Realm. This is because Realm can add the associated functions of a trigger to a queue and process them until there are no more events in the queue. Realm processes this queue even after you disable the trigger.

By reducing each trigger’s firing time, the time needed for the queue to clear also reduces. A trick to achieve this is to update the trigger’s associated functions as noop executions so that the functions can complete more quickly.

Did this answer your question?