PC Specifications for 1000mb database ?

Discussion in 'MySQL' started by Marty_, Jul 10, 2007.

  1. #1
    Just a general question, does any body here have experience running there own server's with a large database 1000mb, if so what pc specs would you recommend ? (processors / memory etc..)

    I'm trying to develop a large directory Perl driven, my current load times are awful, the raw site without a directory structure loads in under 0.01 sec's, with a directory structure load times run upto 17-20 seconds.

    Some of the sites Perl scripts crash with "Internal Server Error" message, I'm putting that down to low pc specs.

    Currently running windows pro, 1.7mhz with 500mb, php5 mysql 4.1.22 and Perl.
     
    Marty_, Jul 10, 2007 IP
  2. flippers.be

    flippers.be Peon

    Messages:
    432
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    1 gig is a small db
    put it on a machine with 2 gig memory and it'll fly as allt ables are in memory :)

    check your db design, indexes, queries, .. so you don't have table scans
    that's more important than the speed of the hardware
     
    flippers.be, Jul 10, 2007 IP
  3. Marty_

    Marty_ Banned

    Messages:
    1,031
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    0
    #3

    Thanks Flippers I'll bang 2gigs into it later and reply..
     
    Marty_, Jul 10, 2007 IP
  4. Marty_

    Marty_ Banned

    Messages:
    1,031
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I tried that but ran into so clashes, problem is I cant load a .dat file which is 800+mb, the directory structure loads ok (80mb, into one table), but slows down the site 100+ times, you mentioned "table scans" to what where you referring to, I know a little about MySql and Perl.
     
    Marty_, Jul 10, 2007 IP
  5. Marty_

    Marty_ Banned

    Messages:
    1,031
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I got that sorted, I needed to edit my.ini config file.
     
    Marty_, Jul 12, 2007 IP
  6. flippers.be

    flippers.be Peon

    Messages:
    432
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #6
    table scans: if you don't have good indexes on a column and want to retrieve data from a table, sql doesn't know what rows to get so it will search through the whole table, from first row until the last
    this takes a lot of time

    so always put a good primary key on a table and other indexes on columns where you will select on
     
    flippers.be, Jul 12, 2007 IP
  7. Roido

    Roido Active Member

    Messages:
    273
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    60
    #7
    Try not to use correlated subqueries or exists etc.
     
    Roido, Jul 12, 2007 IP