Best database to use?

Discussion in 'MySQL' started by Mr bloggy, Jan 10, 2008.

  1. #1
    I curretly have MySql for my blog site. But sometimes it seems a little slow, not sure if its just the site though.
    But whats the best database to use? would it even make a difference?
     
    Mr bloggy, Jan 10, 2008 IP
  2. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,680
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Performance wise there is not the greatest difference for a small site like a blog. When you are getting into having a farm of servers then the differences become more apparent

    For a sme type site it is normal to go with the natural partner for the programming language eg ASP & MS SQL, PHP & MySQL etc

    If the site is slow you would need to look at the programming of the blog to ensure the coding is efficient - unless there are frequent updates then cache the outputs - but probably most relevant is the load on the web server and sql server to see if it is slow simply because the server is straining under the load or the network is running near capacity.
     
    AstarothSolutions, Jan 10, 2008 IP
  3. LittleJonSupportSite

    LittleJonSupportSite Peon

    Messages:
    386
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    0
    #3
    100% it is a coding issue with the site or the speed of the line that the site is on.

    Also is this on a shared host? Possibly another big site is killing the resources & bandwidth of the machine.

    Small blogs and websites on a mysql db are fine.

    Perfect example I am running a 16K/unique per month roughly 75,000K/hits per month on a Mysql DB with some intense PHP coding.


    So benchmark from there. The site is extremely fast.

    Not tooting my own horn here but I did homebrew everything myself heh
     
    LittleJonSupportSite, Jan 10, 2008 IP
  4. j0ned

    j0ned Active Member

    Messages:
    684
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    60
    #4
    Based on what you've mentioned, MySQL. MySQL is pretty decent, and unless you're willing to form out a nice chunk of change, there really isn't a better alternative.

    If queries are slow, make sure there's enough free ram, optimize the config file for both PHP and MySQL. Also, setup a cron job to stop/start (restart) the service ever 24 or 48 hours at midnight or something. That usually clears up my ram and keeps things running smooth.

    Would anyone disagree with that suggestion? I haven't ran into any issues with data loss or anything, yet.
     
    j0ned, Jan 10, 2008 IP
  5. Kieran.in

    Kieran.in Peon

    Messages:
    22
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Depends, if your getting a lot of traffic, Oracle is a dream, so is the price (sarcasm) :)

    However, MYSQL is perfect for the majority of sites.

    It's also down to programming.

    Make sure if your using mysql_connect (assuming your using PHP), you close the connection with mysql_close.

    I also recommend using mysql_pconnect over connect, as when you are recieving large amounts of traffic it's much more efficent.

    Also, make sure your using INDEXES and PRIMARY keys. These will give you a significant speed boost, but make sure you use them correctly.


    If this doesn't speed you up (it will if it hasnt already been done), then change host.
     
    Kieran.in, Jan 10, 2008 IP
  6. lojadeluxo

    lojadeluxo Well-Known Member

    Messages:
    1,080
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    130
    #6
    i believe the best database is mysql...
    i´ts the same database of wikipedia
     
    lojadeluxo, Jan 10, 2008 IP
  7. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,680
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Not sure why quoting a single company you prove that a db technology is the best one? Plenty of massive organisations use MS SQL, Oracle, DB2 etc. Plus one of the very advantages of MySQL is it is open source and so there is no way to know how much of it has been rewritten for/ my Wiki
     
    AstarothSolutions, Jan 10, 2008 IP
  8. Mr bloggy

    Mr bloggy Active Member

    Messages:
    880
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    58
    #8
    I think im safer sticking with MySQL for now. Seems quite popular
     
    Mr bloggy, Jan 11, 2008 IP