简体   繁体   English

MYSQL数据库性能-大小

[英]MYSQL database performance - size

I have several huge MYSQL tables (10gb+). 我有几个巨大的MYSQL表(10gb +)。 Will the performance of PHP queries I am running on one of these tables be influenced by the presence of other huge tables in the same database? 我在这些表之一上运行的PHP查询的性能是否会受到同一数据库中其他大表的影响? I am not running any queries on these other tables; 我不在这些其他表上运行任何查询; they are neither directly nor indirectly linked to or referenced by my PHP query? 它们既不直接也不间接链接到我的PHP查询或由我的PHP查询引用?

It deppends. 它会下垂。 You have to take in account the limited resources: memory and disc. 您必须考虑有限的资源:内存和光盘。 Are any other program or proccess accessing those tables? 是否有其他程序或进程正在访问这些表? Also you have to considered how your tables are fiscal stored on the database. 另外,您还必须考虑如何将表财务存储在数据库中。 Are they on the same Filegroup? 它们在同一个文件组中吗? Another problem is fragmentation: You can think that diferent tables are fisicaly split but it depends on how your database grow. 另一个问题是碎片化:您可以认为不同的表实际上是分裂的,但这取决于数据库的增长方式。 You can have scenarios where two different tables that grow toghether on time, have their data mixed fisically on the disk and have impact on the performance. 您可能会遇到这样的场景,其中两个不同的表会及时增长,它们的数据在磁盘上混合在一起,并且会对性能产生影响。 Hope my answer helps you. 希望我的回答对您有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM