|
Posted by nospammmer on 09/15/05 21:42
First of all, thanks for your help.
> It sounds like you could improve you performance by using query
> caching and/or better indexing... Read "High Performance MySQL"
> by Jeremy Zawodny; it should give you some ideas...
Even though not an expert, I know quite a bit about database
optimization, so I believe I can affirm that my database is quite
optimized.
> Yes, it is possible. MySQL supports HEAP tables that are stored in
> memory. But you still need to figure out a way to save those tables
> on the hard drive, because HEAP tables disappear when MySQL server
> stops or reboots.
That's right, I have no problems with synchronizing the regular tables
with HEAP tables. So this is an interesting solution. I was wondering
however, if I could gain more speed by skipping MySQL altogether and
using shared memory (Therefore saving communication between php and
mysql, SQL parsing, etc)?
> > Other info:
> > I have a server which runs both the PHP application and the MySQL
> > database. It has 1GB of RAM. The database receives 250 queries / sec.
> It appears a very manageable load... How many concurrent connections
> are you handling?
We have about 300 concurrent users at peak time and about 150 on
average. During peak, the number of queries/sec is more than 250
(perhaps 350?) and the server slows down a little bit but it is still
acceptable. What we would like to do is optimize in order to be able
to accept more users at the same time.
Up to now, It still seems like loading the entire database in shared
memory could be an interesting solutions.
Thank you
[Back to original message]
|