views:

48

answers:

2

Hi,

I'm using Amazon cloud and I've performance issue since the HDD is not located on my machine. My database is small (~500MB) and I can afford to keep it all in my RAM. I do not want to keep queries in my RAM, i need all the tables there.

How can i do it?

Thanks, Koby

P.S. I'm using ubuntu server...

A: 

You can load indexes into cache; if you have small ISAM tables that are frequently queried, MySQL will probably load these into cache as well. Here is a good Performance Wiki article on MySQL tuning.

gareth_bowles
I do not have problem with the queries performance. its the time that takes to fetch all the data.
koby
+1  A: 

You could add a caching layer. Memcached might be a good choice for you:

http://memcached.org/

Ike Walker