Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

数据库删除数据 #254

Open
wh0am111 opened this issue Jun 12, 2020 · 9 comments
Open

数据库删除数据 #254

wh0am111 opened this issue Jun 12, 2020 · 9 comments

Comments

@wh0am111
Copy link

balance_history_1
order_history_1
user_deal_history_1
这三张表的数据挺大的,跑了没多久就十几个G了

viabtc 它是通过内存来匹配的 匹配完了在慢慢把数据放进mysql mysql 只是一个历史记录 每次viabtc 匹配引擎重启都是靠 mysql 历史数据恢复到内存里面 所以删错了会造成 匹配引擎打不开

是这样吗?
那这三张表的数据能删吗?怎么删?

@wh0am111
Copy link
Author

@haipome @ppLorins 麻烦大佬看看

@qyvlik
Copy link

qyvlik commented Jul 23, 2020

@wh0am111 这些表算是日志表, viabtc 重启后,通过重做日志恢复状态。
需要自己实现 viabtc 状态保存到数据库,这样下次 viabtc 重启后,从 状态表恢复即可。

@haipome
Copy link
Member

haipome commented Aug 1, 2020

history 表是可以清理的

@haipome
Copy link
Member

haipome commented Aug 1, 2020

operlog 和 slice 表是用来恢复状态的

@wh0am111
Copy link
Author

operlog 和 slice 表是用来恢复状态的

谢谢

@TaylorWenOne
Copy link

history 表是可以清理的

所有后缀为history表都可以清理吗?balance_history_1 order_history_1 user_deal_history_1还有一张表deal_history这可以吗?order_detail可不可以呢??

@ghost
Copy link

ghost commented Jan 25, 2021

交易所提供技术支持,出售币币,OTC,合约交易所全套代码,可以二次开发,有客户案例 wx: doposn

@nullcanon
Copy link

history 表是可以清理的

所有后缀为history表都可以清理吗?balance_history_1 order_history_1 user_deal_history_1还有一张表deal_history这可以吗?order_detail可不可以呢??

可以清理,这些都是历史数据。

@viabtcexchange
Copy link

请问,如何删除所有的K线数据呢?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants