Well, the reason I used the LIMIT 0, 500 is because sometimes I start at 500, 500
1000, 500 etc. So the LIMIT was really causing a performance strain. It seems to be okay now, I'll just try not to delete any rows =] (hopefully).
User Profile
Collapse
-
Okay I'm just gonna use the < and <= things because LIMIT seems to suck horribly. If anyone can tell me a reason behind this please let me know.
And thanks atli for responding =].Leave a comment:
-
I don't think it's a connection problem, because when running it from just phpmyadmin I get...
Showing rows 0 - 499 (500 total, Query took 10.9797 sec)
If I use EXPLAIN I'm getting
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE myTable ALL NULL NULL NULL NULL 132306
(Sorry that didn't come out well) but it says it's...Leave a comment:
-
Trying to optimize a MySQL query.
Okay, well what my query looks like is:
This query is taking a long time and changes in time each time i run it, from 0-10 seconds.Code:SELECT id, title FROM myTable LIMIT 0, 500
And I don't see any reason behind it. id is set as my PRIMARY index.
The table has 132,000 rows, but I don't think it should be taking this long. Do you think the server is just slow? Or do you see a problem with...
No activity results to display
Show More
Leave a comment: