We have ACS 7.1 version and while running some API calls, we see the runtimes going over 2-3 minutes. We do have a huge database (over 1TB) and suspect sql queries take long time to return. Is there a way , we can debug the sql that gets run during an API call and get the time it takes to return results?
Is there a package where we can add logger and expose all sqls running and time they require to complete?