- I have a GQI script which is triggered for every 10 seconds from LCA.
- This GQI calling my custom API script.
- My custom API will get data from dataminer and cache it for 30 seconds and then return the values to my gqi
- My GQI gets the data and cache it for 10 seconds and return it to LCA
the problem i face here is, apart from my GQI, the API is getting automatically triggered from somewhere for every 60 seconds. I can see in logs that api call is not from my GQI.
has anyone faced this issue?
Im creating a monitoring application which will be dealt with huge amount of data and expected it to be refreshed for every 10 seconds. to reduce slowness when it comes to dealing with data, caching is used here.
Hi Barinisudha,
Thanks for the information. You could also cache this information only in the ad-hoc data source. There is an example available in DataMiner Docs:
https://docs.dataminer.services/user-guide/Advanced_Modules/Dashboards_and_Low_Code_Apps/GQI/Extensions/Ad_hoc_data/Scaling_Ad_hoc_Data_Source.html
Keep in mind that every time that a user opens a dashboard/LCA, and there are components displaying data from your GQI query, the GQI query will be triggered.
I've used this exact user-based caching in my GQI script. My problem here is, even if i don't access my application, I can see the API is triggered every 60 seconds. in logs i can see it is not from my GQI

Hi Barinisudha, Is this a User-Defined API you are talking about? If so, in the "C:/Skyline DataMiner/logging/SLUserDefinableApiManager.txt" you should see the API being triggered, and this should contain the ID of the token that was used
Hi Barinusudha,
If I understand correctly, you are caching data two times (in your custom API and then in GQI) . Is there a reason for that implementation?
Is it not an option to retrieve data directly from the DMA using a ad-hoc data source?
https://docs.dataminer.services/user-guide/Advanced_Modules/Dashboards_and_Low_Code_Apps/GQI/Extensions/Configuring_an_ad_hoc_data_source_in_a_query.html