Hello Ralf,
Can you check your api in postman or swagger in your local machine, you can compare timing, ideally it should not take 25 second.
Hi Ralf, when the /api/v4/apps call takes 25 seconds and subsequent environment calls are near instant, this likely points to a performance issue on that specific API endpoint or within your call setup.
Possible Reasons & Solutions:
Heavy Access Rules or Filters
Complex security rules on the app data may slow down the response.
Try simplifying access rules and test again.
No Caching
The API might fetch all app data live every time.
If data doesn't change often, cache it in your app and call it less frequently.
Log Slow Queries
Enable LogMinDurationQuery=5s in Mendix Cloud settings.
Helps identify slow DB queries causing the delay.
Use APD (Application Performance Diagnostics)
Profile the API call to see where the delay happens.
Use the APD module from the Mendix Marketplace.
Contact Mendix Support
If it’s a backend issue (Mendix API side), only support can help.
I hope this one helps you! :)