How to reduce the Clear and Acked items in the Alarm Query of the gateway?

Hi
As the title, does the gateway server get slow when the Alarm Query keeps going up?
How to reduce it?

Thanks,

image

You can filter those out of your query using the state value:
image

Another strategy that is commonly used to prevent the gui from slowing down with such queries is to invoke the query asynchronously, but if you want to use the data in the gui after you have retrieved it in this way, you will need to use system.util.invokeLater to safely return the information to the event dispatch thread.

2 Likes

Hi
Thanks so much~
get it, this is very helpful. I will try it.