As I'm looking to optimize some of my mysql queries and improve performance, I'm realizing that I'm just not sure what sort of response times I should be aiming for. Obviously lower is better, but what do you normally target as a 'slow' query for a consumer site?
My queries are currently running between 0.00 to 0.70 seconds.
I assume 0.00 is pretty good, but what about 0.70 seconds? I assume I should be looking for improved performance on that? If so, what do you usually aim for?
-----A bit more info about my query to answer your questions (though I really am interested in yours & what you do ----
My queries are on joined tables with between 1-3 million rows (sometimes more). I run my queries on the same box which has 4gb of RAM and an SATA drive. That box runs 6 different databases two of which are regularly being queried, one regularly being updated. The times I provided are for the 'read' database which is rarely written to.
For web requests, I am running between 1 & 3 queries (but I cache the data using memcache as well for performance).
The times I gave were from the mysql response from command line terminal to the machine (so I assume that is actually runtime).
The queries have many joins, between 4 & 7 depending on the query.