Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我计划创建一个分析表。每月大约有 100 万条记录可以插入到表中。帮助我更好地优化并快速获取记录。或者,我计划每月拆分表(在服务器上运行 cron 以创建表)所有插入都会将行插入到相应的月份表中。这是设计表格的更好方法吗?
请对数据库设计提出建议
我建议对数据库进行分片。更多信息可以在这里找到分片的重要性
和MySQL 分片的方法。希望这可以帮助。