How to optimize MySQL queries

Discussion in 'WordPress' started by wptheme, Dec 10, 2010.

  1. #1
    Hi everyone,
    I was asked by my host that to reduce the load considerably, please optimize the MySQL queries to the database 'xxxx_wrdp1 '. We could see many sleep queries associated with this.

    How on earth do I optimize MySQL in my wordpress database? Do we have plugin?
    Thanks in advance to any advices.
     
    wptheme, Dec 10, 2010 IP
  2. wpfan

    wpfan Member

    Messages:
    64
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    31
    #2
    I would recommend using wp super cache.

    I can't submit live links yet but just go to wordpress extend -> plugins and search wp super cache
     
    wpfan, Dec 10, 2010 IP
  3. wptheme

    wptheme Well-Known Member

    Messages:
    4,051
    Likes Received:
    346
    Best Answers:
    0
    Trophy Points:
    180
    #3
    Hi,
    thanks fir the reply but I am already using super cache, any thing else?
     
    wptheme, Dec 10, 2010 IP
  4. wpfan

    wpfan Member

    Messages:
    64
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    31
    #4
    What plugins are you using if any? How much traffic does your site get?
     
    wpfan, Dec 10, 2010 IP
  5. wptheme

    wptheme Well-Known Member

    Messages:
    4,051
    Likes Received:
    346
    Best Answers:
    0
    Trophy Points:
    180
    #5
    Around 250K per month, I am on a vps.
     
    wptheme, Dec 10, 2010 IP
  6. ntie29

    ntie29 Peon

    Messages:
    48
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    plis try this plugin dbchace reload compare with plugin wpsuperchace......thanx
     
    ntie29, Jan 14, 2011 IP
  7. Dodger

    Dodger Peon

    Messages:
    1,494
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Obviously you have more going on with the database than just WordPress. Either it is a plugin, or your host can't handle it, or a host of other things. Everyone's thought of throwing another plugin on top of the situation is inane.

    Who is your webhost, what version of WP are you running, what version of MySQL are you running, what plugins are you running, what is the Url of the website, and I have a host of other questions. The more info you have, the better to help you resolve the situation.
     
    Dodger, Jan 14, 2011 IP
  8. ntie29

    ntie29 Peon

    Messages:
    48
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    :) i suggest you to always update your plugin mate
     
    ntie29, Jan 17, 2011 IP
  9. techlunatic

    techlunatic Peon

    Messages:
    227
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Use CSS sprites . Though its not related to Mysql but the use of css sprites reduces the number of http requests sent . For the mysql optimization fry to reduce the number of plugins you are using .
     
    techlunatic, Mar 22, 2011 IP