How many MySql queries/second can be handled by a server?

XCS picture XCS · Dec 30, 2010 · Viewed 21.1k times · Source

I've started developing a browser (database) game. My question is how many queries can a regular hosting handle (when I mean regular, I mean a shared hosting you cand find for about 7$/month). As for the queries, nothing complicated (simple SELECT and WHERE operations).

So... ? 10? 100 ? 10000?

Answer

Michael Goldshteyn picture Michael Goldshteyn · Dec 30, 2010

This is completely dependant on the server hardware, it's caching ability and configuration, and the type of hardware it uses for non-volatile storage (e.g., a RAID array of hard drives with spindles or SSDs?), not to mention the type of query and database being queried, including:

  • Number of joins
  • Indexes
  • Number of rows in the tables queried
  • Size of the result set
  • Concurrent load
  • etc...

Without knowing all of these factors, it is impossible to estimate performance. The best estimate comes from actual profiling, performed under normal operating conditions with the type of queries that will actually be presented.