SLOW MYSQL Server

Discussion in 'MySQL' started by adiadi81, Mar 16, 2008.

  1. #1
    I am using shared hosting with dreamhost. The database has 50 tables, each has millions of records. I indexed the tables.

    Some needed queries are super slow (they take 50 seconds)...

    Any recommendations ? Should I get dedicated server ? If I get dedicated server, what Ram should I get ?

    Any help is appreciated?

    Thanks
     
    adiadi81, Mar 16, 2008 IP
  2. pipsbank

    pipsbank Banned

    Messages:
    1,187
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    0
    #2
    normally 50 tables you will do well in the shared hosting environment
    just ask for dedicated mysql server will help you
     
    pipsbank, Mar 16, 2008 IP
  3. worldpresident

    worldpresident Banned

    Messages:
    163
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    millions of records????!!!
     
    worldpresident, Mar 18, 2008 IP
  4. zonzon

    zonzon Peon

    Messages:
    100
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #4
    did you run the explain plan of your statements?

    EXPLAIN *QUERY*

    It will return you how mysql resolves the queries. If it needs temporary tables on RAM or on DISK, better on RAM than physically...

    Same thing for the sorts, etc...

    Do you have the control on the server settings? Some huge databases like yours needs to be tuned or dedicated... If ALL of your tables are filled by million rows like you said, you probably need to move this db on a dedicated server...

    hope that helps
    Bruno
     
    zonzon, Mar 21, 2008 IP
  5. turksweb

    turksweb Peon

    Messages:
    354
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #5
    you said 50 tables and each one has millions row. so total is 50 millions.

    you need minimum 4 GB RAM on dedicated server and big disk space for virtual memory. of course, if you can have more RAM is better. I am just telling you minimum 4 GB.

    about slow query;

    I don't know nothing about the structure of databases and I think you have to also take look cache of db..

    hope that helps.
     
    turksweb, Mar 21, 2008 IP
  6. RectangleMan

    RectangleMan Notable Member

    Messages:
    2,825
    Likes Received:
    132
    Best Answers:
    0
    Trophy Points:
    210
    #6
    You need a dedicated to run that type of mysql server.
     
    RectangleMan, Mar 21, 2008 IP
  7. adiadi81

    adiadi81 Well-Known Member

    Messages:
    313
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    130
    #7

    How much memory should I get ?
     
    adiadi81, Mar 21, 2008 IP
  8. soad524

    soad524 Peon

    Messages:
    43
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    you shouldnt need a dedicated server. Just hosting on a less popular server. One where there are at the max 50 clients
    I sell hosting and i have around 50 clients and i have a crapload of tables and entries and mine works fine.
     
    soad524, Mar 23, 2008 IP
  9. mwasif

    mwasif Active Member

    Messages:
    816
    Likes Received:
    23
    Best Answers:
    1
    Trophy Points:
    70
    #9
    This is the way to start with
     
    mwasif, Mar 24, 2008 IP