Thanks @philippe-camelio_3885
So, the good news is, we've identified the problem. There was just a huge number of manual executions happening, for some reason, and the manual execution purging routine could never catch up. Changing those throttles wouldn't make a difference I'm afraid, as none will trigger a manual execution...
At first, can you please share the results of this query, so we can see what made all those?
SELECT [ExecutionType_Name], COUNT(*) FROM [ManualExecutions] GROUP BY [ExecutionType_Name]
That will tell us what Manual Executions are around, mostly so we can understand what it is. I suspect, infrastructure sync.
That being said... the first thing I'm now seeing is that the report looks old. It's because the number of rows is 164,125, which is the exact same number as from before. So, I'm thinking, actually, you didn't commit the transaction in the query I posted before? It included a ROLLBACK
statement as a safety measure... that's my fault, I should have said to only run DELETE if you were satisfied.
Since the query seems okay (it reduced rows from 164K down to 1k), please run this:
DELETE [Executions]
FROM [Executions] E,
(SELECT [Execution_Id],
ROW_NUMBER() OVER(PARTITION BY [ExecutionMode_Code] ORDER BY [Execution_Id] DESC) [Row]
FROM [Executions]
WHERE [ExecutionMode_Code] IN ('R', 'M', 'T')) EE
WHERE E.[Execution_Id] = EE.[Execution_Id]
AND EE.[Row] > 1000
From here, it should actually be fine...