Optimizing MYSQL Databases

Discussion in 'MySQL' started by 1Breaker, May 16, 2012.

  1. #1
    Anyone know how to make a database faster?

    Currently I have 500 identical table structured tables in one database which helped - but I'm looking for a better way.
     
    1Breaker, May 16, 2012 IP
  2. dnk

    dnk Well-Known Member

    Messages:
    1,576
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    143
    #2
    For which application/website is this database used for?
     
    dnk, May 16, 2012 IP
  3. fixyourserver

    fixyourserver Peon

    Messages:
    20
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    0
    #3
    If you don't already have indexes in place, that would be a good start. You can see where these would help by finding your largest query and running it with explain in front of it. It should provide you with some relevant information including the total numbers of rows read. If you create a proper index, this should cut this number down significantly and improve the speed of applications utilizing the databases.
     
    fixyourserver, May 20, 2012 IP
  4. iMarcus

    iMarcus Active Member

    Messages:
    122
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    90
    #4
    Using ID's and primary keys should also speed things up. I had a db with 2.6 million records and no indexes! Adding 2 indexes dropped one particular query time from 15 sec to <1 sec.
     
    iMarcus, May 27, 2012 IP