apache / servicecomb-pack

Apache ServiceComb Pack is an eventually data consistency solution for micro-service applications. ServiceComb Pack currently provides TCC and Saga distributed transaction co-ordination solutions by using Alpha as a transaction coordinator and Omega as an transaction agent .
https://servicecomb.apache.org/
Apache License 2.0
1.93k stars 436 forks source link

How clean the history records? #713

Open Richard-Yi opened 3 years ago

Richard-Yi commented 3 years ago

Every successful global tx in tcc mode will save (3n+2) records in tcc_tx_event table; Every successful global tx in saga mode will save (2n+2) records in TxEvent table;

If it is a prod environment, it will be a big amount of records generated in one day...

Any advice on this?🙏

WillemJiang commented 3 years ago

Yes, there is lots of events here, you may consider to run the batch to clean up these events.