MySQL:如何将整个myisam表保留在内存中? [英] MySQL: How to keep entire myisam table in memory?

查看:88
本文介绍了MySQL:如何将整个myisam表保留在内存中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的服务器上有很多RAM(1 gb),并且我想增加速度(100 mb).是否可以将整个表保留在内存中(同时将其保留为MYISAM)?这样会使事情变得更快(我已经有了合适的索引).

I have a lot of RAM (1 gb) on my server, and I have a table (100 mb) that I would like to increase the speed of. Is it possible to keep the entire table in memory (while keeping it MYISAM)? Would this make things faster (I already have the proper indexes).

谢谢

推荐答案

一个更好的建议是增加查询缓存的大小,让mysql进行内部优化

A better suggestion will be increase query cache size, let mysql do the internal optimization

更多详细信息- http://dev.mysql.com /doc/refman/5.5/zh-CN/query-cache.html

这篇关于MySQL:如何将整个myisam表保留在内存中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆