Drools alarm may update alarms unnecessarily on snapshot
Description
When handling an alarm snapshot (a copy of all the alarms from the database), the Drools engine will currently re-update all of the associated facts in working memory. For systems with a large number of alarms this can cause unnecessary overhead.
We should only update alarms in when the alarms in the snapshot are different from the ones in memory.
When handling an alarm snapshot (a copy of all the alarms from the database), the Drools engine will currently re-update all of the associated facts in working memory. For systems with a large number of alarms this can cause unnecessary overhead.
We should only update alarms in when the alarms in the snapshot are different from the ones in memory.