|
|
|
rev1429 - do not query the database for which conditions belong to what agent (deleted conditions will never be found, leaving stale conditions in the cache indefinitely);
instead, keep track of this relationship by using a Map<agentId, List<conditionId>> which is inspected to figure out which cache elements to remove; |
|||||||||||||||||||||||||||||||||||||||||||||
batch the removal and insertions by 250 alert conditions at a time;
modify the CacheConsistencyManager to ONLY reload caches for "dirty" agents;