User Profile

Collapse

Profile Sidebar

Collapse
giraph
giraph
Last Activity: May 4 '07, 08:26 PM
Joined: Feb 18 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • giraph
    replied to Trying to optimize a MySQL query.
    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).
    See more | Go to post

    Leave a comment:


  • giraph
    replied to Trying to optimize a MySQL query.
    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 =].
    See more | Go to post

    Leave a comment:


  • giraph
    replied to Trying to optimize a MySQL query.
    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...
    See more | Go to post

    Leave a comment:


  • giraph
    started a topic Trying to optimize a MySQL query.

    Trying to optimize a MySQL query.

    Okay, well what my query looks like is:

    Code:
    SELECT id, title FROM myTable LIMIT 0, 500
    This query is taking a long time and changes in time each time i run it, from 0-10 seconds.

    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...
    See more | Go to post
No activity results to display
Show More
Working...