We have an issue with the API, when we call the endpoint /TDMDataReservationService/api/ca/v1/environments with DELETE option, we got a timeout after 1 hour.
Could you explain why it take so much time to delete this data and how to improve this action?
TDM 4.11
When deleting an environment, there's a lot of data that needs to be cleaned up in both the gtrep repository and the OrientDB database. Unfortunately, we can't say how long the cleanup will take for the databases.
Broadcom recommends you work with your DBA when deleting the environments from TDM Portal. If your DBA see something that would help with the performance, we will definitely take that into consideration, and do what we can to improve the performance. At this time, we believe that because there was so much data to clean, that is why you are seeing the delay.
There are numerous tables touched when deleting TDM environments (almost all gtrep_* tables at some point), but the one that probably contain the most data would be the Data Discovery tables:
These tables might be a good place to have your DBA take a look, and see which queries are taking a long time to complete.
The customer worked with their DBA, and it appears that some indexes and stats were not correct in their Oracle DB. They rebuilt the index and refresh all stats to optimize the plan.
In parallel, they also deleted some old project/version to be able to reduce the DB size, which in turn reduced time to get data from DB.