Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
saga-0.2.0
-
None
Description
The count of txevents is about 100m. and this sql spend too much time so that the event scanner is blocked.
[SQL]DELETE FROM TxEvent t WHERE t.type = 'SagaEndedEvent' AND t.surrogateId NOT IN ( SELECT MAX(t1.surrogateId) FROM TxEvent t1 WHERE t1.type = 'SagaEndedEvent' GROUP BY t1.globalTxId);
时间: 1308.376s
受影响的行: 5
Attachments
Attachments
Issue Links
- links to