Since QV times people requested to programmatically remove/unload apps from memory. Im guessing there are valid arguments against this to not implemented (and might never be).
But what about to be able to register for notifications (via Notification API probably?) when apps are:
- soon to be removed - "if nothing is changed in the next X minutes" the app will be removed from memory
- unloaded - when app is actually removed from memory
- started loading app into memory
- completed loading app into memory
The why(s):
- why not - 🙂 its good to know when something is about to happen/is happening with the apps. The internal Engine events are quite ... mysterious and not many ways to know what is happening in real-time. This way we can proactively monitor what is happening with the Engines and potentially identify problematic apps (cross reference with the Healthcheck API)
- (personal) i wrote a tool that keeps some apps constantly in the memory. The tool executes small calculation on the required apps every few minutes and thats how the apps are kept in the memory. Its a bit an overkill to loop every few mins across all engines and open multiple apps. It will be more effective if we were notified when app is about to be unloaded so we can decide if the app should be left to "expire" or to "ping" it and prevent unloading
Thanks!
Qlik Sense Enterprise on Windows