问题描述
我需要帮助,我感到困惑的是,MySQL是否可以处理10到12列数据中的100亿行,还是我必须寻找其他开源数据库(如PostGreSQL等)?
I need help and i'm confused whether MySQL can handle 10 Billion rows with 10-12 columns of data or should i have to look for other Opensource databases like PostGreSQL etc.
请让我知道。
推荐答案
是的,MySQL可以处理100亿行。当您在最大的表上定义id时,请使用 bigint
。
Yes, MySQL can handle 10 billion rows. When you define ids on the largest tables, use a bigint
.
当然,无论性能是否良好取决于您的查询。对于使用索引的基本插入,更新,删除和选择,性能应该还可以-假设您有足够的内存。您可能还想对表进行分区。
Of course, whether performance is good or not depends on your queries. For basic inserts, updates, deletes, and selects using an index, performance should be okay -- assuming you have enough memory. You might also want to be partitioning your tables.
这是否意味着您应该使用MySQL?这是一个不同的问题,不适用于Stackoverflow。您可能希望将问题(具有更多详细信息)发布到网站上。
Does this mean you should use MySQL? That is a different question and not appropriate for Stackoverflow. You might want to post the question (with more details) on the software recommendations site.
这篇关于MySQL是否可以处理具有10-12列的100亿行数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!