[
https://issues.apache.org/jira/browse/SCB-885?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16602128#comment-16602128
]
ASF GitHub Bot commented on SCB-885:
------------------------------------
coveralls commented on issue #287: SCB-885 saga alpha event scanner delete
duplicate events sql optimization
URL:
https://github.com/apache/incubator-servicecomb-saga/pull/287#issuecomment-418107485
[](https://coveralls.io/builds/18802686)
Coverage increased (+0.002%) to 93.875% when pulling
**76606b328a2550163cebb6220e847feb0ddfb413 on oliugian:master** into
**63d71938e376eac280999d65e468a693df5e601a on apache:master**.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> saga alpha event scanner delete duplicate events sql optimization
> -----------------------------------------------------------------
>
> Key: SCB-885
> URL: https://issues.apache.org/jira/browse/SCB-885
> Project: Apache ServiceComb
> Issue Type: Improvement
> Components: Saga
> Affects Versions: saga-0.2.0
> Reporter: FuChenGeng
> Assignee: FuChenGeng
> Priority: Minor
>
> 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
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)