Optimizer Mysql?

Discussion in 'MySQL' started by toresfan, Aug 6, 2010.

  1. #1
    I am using wordpress open source for my site.
    But now the database is large, It run slowly and some time down site.
    Who can help me?
     
    toresfan, Aug 6, 2010 IP
  2. ajomehri

    ajomehri Active Member

    Messages:
    212
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    53
    #2
    are you sure it's the database causing problem ? how big it is ? 2-3 gig ? you're gonna need a database expert , but first of all do take a backup out of your database
     
    ajomehri, Aug 6, 2010 IP
  3. danx10

    danx10 Peon

    Messages:
    1,179
    Likes Received:
    44
    Best Answers:
    2
    Trophy Points:
    0
    #3
    What makes you think its the database causing the problem?
     
    danx10, Aug 7, 2010 IP
  4. fusion_pro

    fusion_pro Peon

    Messages:
    35
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    1) Install WP super cache, it will cache the pages and offload a lot of mysql process.
    2) I/O may be an issue try using sas HDD.

    Source: from my personnel experience. I had a big wordpress website which database always caused problem. I solved by using sas in raid -0 which hard fast read speed for my website to work effortlessly.
     
    fusion_pro, Aug 7, 2010 IP
  5. longvnit

    longvnit Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    WP is not good for big database. U should to moving into new CMS Joomla or Drupal ...
     
    longvnit, Aug 18, 2010 IP
  6. superwordpressthemes

    superwordpressthemes Peon

    Messages:
    39
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    If talk about big database, maybe it's better you mention the size of database/ Or maybe number of post that can be handled by WP with good speed. I read so many people tell about this, but there is no exactly size of database.

    Thanks
     
    superwordpressthemes, Aug 23, 2010 IP
  7. mwasif

    mwasif Active Member

    Messages:
    816
    Likes Received:
    23
    Best Answers:
    1
    Trophy Points:
    70
    #7
    First of all you need to tell us the database size. In some cases, cache also helps as fusion_pro suggested.
     
    mwasif, Aug 27, 2010 IP
  8. Chuckun

    Chuckun Well-Known Member

    Messages:
    1,161
    Likes Received:
    60
    Best Answers:
    2
    Trophy Points:
    150
    #8
    In adition to all the REAL solutions such as cache, make sure you clear your SQL tables' overheads..

    in PHPMyAdmin, you can do this simply by selecting your database, then select all tables, and choose 'Optimise Table' from the drop-down..

    If not, do it manually (you'll need to know each of your table names)

    OPTIMIZE TABLE `table1` , `table2` , `table3` , `table4` etc...

    Jack
     
    Chuckun, Aug 27, 2010 IP
  9. mwasif

    mwasif Active Member

    Messages:
    816
    Likes Received:
    23
    Best Answers:
    1
    Trophy Points:
    70
    #9
    There will be no benefit of optimizing tables if data is not being delete frequently from a table (deletions are more often than insertion). Run the SHOW TABLE STATUS query to identify if there is any need to OPTIMIZE table or not
    SHOW TABLE STATUS LIKE 'table_name';
    Code (markup):
    There is no benefit to OPTIMIZE table if you get 0 in output against Data_free.
     
    mwasif, Aug 27, 2010 IP
  10. Chuckun

    Chuckun Well-Known Member

    Messages:
    1,161
    Likes Received:
    60
    Best Answers:
    2
    Trophy Points:
    150
    #10
    Well, sure there might be no need for some tables, but as you say, for a blog or something, it's not likely that much info is deleted, so it'd be fine to just run it manually once in a while, in which case, it's not exactly a heavy process to run..

    Jack
     
    Chuckun, Aug 27, 2010 IP
  11. mwasif

    mwasif Active Member

    Messages:
    816
    Likes Received:
    23
    Best Answers:
    1
    Trophy Points:
    70
    #11
    Hmm... May not be true for big tables. As OPTIMIZE TABLE uses REPAIR TABLE to reclaim the unused space.
     
    mwasif, Aug 27, 2010 IP
  12. tewman

    tewman Peon

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #12
    I'd check you sql statements. Some will run faster than others. Also use indexes as a full table search will slow down your site immensely.
     
    tewman, Sep 19, 2010 IP