简体   繁体   English

VPS上的MySQL性能

[英]MySQL Performance on VPS

I am building a Mobile App which uses a backend server to store the data. 我正在构建一个使用后端服务器来存储数据的移动应用程序。 If I describe it in terms of Relational DB then it is ~10K records (2 or 3 tables). 如果我用Relational DB描述它,那么它是~10K记录(2或3个表)。 Planning to use Linode VPS to host it (512 MB). 计划使用Linode VPS来托管它(512 MB)。 I know the question is very broad, but want to get an idea about the performance under load. 我知道问题非常广泛,但想了解负载下的性能。

Another choice is to use a NoSQL like Redis, but for that need to put up some time to learn. 另一种选择是使用像Redis这样的NoSQL,但为此需要花些时间来学习。

I already did searching on SO, but no satisfactory answers yet. 我已经搜索了SO,但还没有令人满意的答案。

PS: This is a side project and i expect to learn the things along the way. PS:这是一个侧面项目,我希望在此过程中学习。 But some good pointers would help to speed up the process. 但一些好的指针将有助于加快这一进程。

it appears that you'll have to work on optimizing queries more than looking for some quick fix. 看来,除了寻找一些快速修复之外,您还需要优化查询。 I have been working with plenty of projects running on virtual servers with no performance issues if you write the queries in correct manner. 如果您以正确的方式编写查询,我一直在处理在虚拟服务器上运行的大量项目,没有性能问题。 Have a read: http://owaisahussain.blogspot.com/2012/06/yet-another-blog-on-query-optimization.html 阅读: http//owaisahussain.blogspot.com/2012/06/yet-another-blog-on-query-optimization.html

Disable InnoDB, that will save you lots of RAM. 禁用InnoDB,这将节省大量的RAM。 To do this, have skip-innodb in your my.cnf file. 要做到这一点,请在my.cnf文件中使用skip-innodb。

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

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