MySQL 在哪里“存储”数据?表开销数据?
我即将将一个大型数据库表从生产服务器上移走以进行备份。
约 130,000,000 行,总数据 45GB。
在 DELETE 查询中断后(在更新过程中),表现在的开销超过 100MB。
根据过去的经验,我无法在不影响实时站点性能的情况下优化生产服务器上的此表。
所以我打算将表移动到另一台服务器......我总是采用.frm、.MYD和.MYI文件......
但是开销存储在哪里?在.MYD 中?如果无论如何都需要重建表,我是否需要携带无意中听到的数据?
I'm about to move a large database table away from my production server for backup.
~130,000,000 rows, 45GB total data.
After an interupted DELETE query (during the update process) the table now has an overhead of over 100MB.
From past experience I can't optimize this table on my production server without impacting on the perfromance of my live site.
So I plan to move the table to another server.... I always take the .frm, .MYD and .MYI files...
But where is the overhead stored? In the .MYD? And do I need to bring overheard data with me if the table will need to be rebuilt anyway?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
开销是数据文件中曾经包含数据但现在不再包含的空间(由于
DELETE
查询等)。如果你不能优化,你就会陷入转移开销的困境。Overhead is space in the data files that used to contain data but doesn't anymore (due to
DELETE
queries etc.). If you can't optimize, you're going to be stuck transferring the overhead.