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

Optimize message partition table creation #18

Merged
merged 2 commits into from
Jan 6, 2025

Conversation

zilewang7
Copy link
Contributor

分区表自动创建和更新

@lilydjwg
Copy link
Owner

lilydjwg commented Jan 2, 2025

每插入一行就尝试创建一次不太好吧……另外不应该创建消息所在的那一年的吗?

@zilewang7
Copy link
Contributor Author

每插入一行就尝试创建一次不太好吧……另外不应该创建消息所在的那一年的吗?

那先把触发器移除了,没想到比较好的自动创建方式,要么需要装插件,要么就是在代码内判断但是建表没权限

@zilewang7 zilewang7 changed the title Optimize message partition table creation and add auto-partitioning Optimize message partition table creation Jan 2, 2025
@lilydjwg
Copy link
Owner

lilydjwg commented Jan 2, 2025

可能 crontab / systemd.timer 也是个不错的选择?

@lilydjwg lilydjwg merged commit eba9ae5 into lilydjwg:master Jan 6, 2025
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

Successfully merging this pull request may close these issues.

2 participants