Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: More powerful server... how much faster will my SQL queries be?

  1. #1
    Wannabe Geek
    Join Date
    Sep 2006
    Posts
    195
    Post Thanks / Like

    Default More powerful server... how much faster will my SQL queries be?

    Hello

    I run a couple of websites which do complex "like '%word%'" SQL queries (such as this: Jobseeker - Jobs )

    Some of my queries are a bit slow.

    My server is a fairly basic celeron (can't remember the exact spec, but I think it's 1.8 Ghz with 512 MB ram.)

    If I were to upgrade to say... a Xeon 2.8 Ghz with 1 Gig ram, would my SQL queries run much faster?

    Or is there a smarter way to speed up my queries?

    Any advice appreciated. Thanks!

  2. #2
    Web Slave blacknight's Avatar
    Join Date
    Jan 2006
    Location
    Ireland
    Posts
    9,998
    Post Thanks / Like

    Default

    Are you running the latest version of MySQL?

    Have you optimised the setup?

    Are you caching enough?

    512MB of RAM doesn't sound like enough anyway ....

  3. #3
    Wannabe Geek
    Join Date
    Sep 2006
    Posts
    195
    Post Thanks / Like

    Default

    Hi Blacknight

    Thanks for the reply.

    To answer your questions -

    Are you running the latest version of MySQL?
    MySQL version 4.0.27-standard. Pretty old I guess!

    Have you optimised the setup?
    No. I'm just running the queries. I could defo improve in this area...

    Are you caching enough?
    I don't think I'm caching at all...

    Hmmm. Any advice?

    Thanks

  4. #4
    Web Slave blacknight's Avatar
    Join Date
    Jan 2006
    Location
    Ireland
    Posts
    9,998
    Post Thanks / Like

    Default

    A newer version of mysql might help

    You could also look into some of the caching / optimisation tips that you'll find online eg. caching the php could help with the overall performance

    If you have a look at some of the MySQL blogs you should get some suggestions, though I'm sure someone on here will have suggestions

  5. #5
    Wannabe Geek
    Join Date
    Sep 2006
    Posts
    195
    Post Thanks / Like

    Default

    Thank you. I'll look into your suggestions.

    Cheers.

  6. #6
    Wannabe Geek
    Join Date
    Feb 2007
    Posts
    364
    Post Thanks / Like

    Default

    More RAM always helps, and a bigger cache on the CPU will help any database functions.

  7. #7
    Web Slave blacknight's Avatar
    Join Date
    Jan 2006
    Location
    Ireland
    Posts
    9,998
    Post Thanks / Like

    Default

    Quote Originally Posted by dude View Post
    Thank you. I'll look into your suggestions.

    Cheers.
    Here's a few links:

    MySQL Optimization

    Michele Neylon :: Pensieri Mobile Edition - there's some useful stuff in the comments

    MySQL's Query Cache

  8. #8
    Wannabe Geek
    Join Date
    Sep 2006
    Posts
    195
    Post Thanks / Like

    Default

    Great Thanks again.

  9. #9
    Web Slave blacknight's Avatar
    Join Date
    Jan 2006
    Location
    Ireland
    Posts
    9,998
    Post Thanks / Like

    Default

    Quote Originally Posted by dude View Post
    Great Thanks again.
    No problem - let us know how you get on

  10. #10
    Dan
    Dan is offline
    Frontpage User
    Join Date
    Jan 2007
    Posts
    10
    Post Thanks / Like

    Default

    You'll know if you need more RAM by looking at your own server statistics. Are you swapping to disk at all?

    Basic indexing can help hugely too - with MySQL you can log all your slow queries (say ones that took longer than 2 seconds to run) to a file and then use EXPLAIN to see how they are running.

    So imagine your query is something like
    Code:
    SELECT * FROM jobs WHERE Location like '%word%';
    running an explain plan is as simple as putting EXPLAIN beforehand.

    Code:
    EXPLAIN SELECT * FROM jobs WHERE Location like '%word%';
    It'll give you some pointers as to whether its expecting an index, or doing something manky like creating a temporary table. Sometimes, due to the fact that MySQL does funny things internally with its optimiser, even rephrasing your queries to return the same results can help.

    Lastly, if you are looking at full text searching mysql, its nasty. Take a look at Sphinx Search - its pretty good if you put a bit of work into it.

Page 1 of 2 12 LastLast

Similar Threads

  1. Script Installation, Server Administration
    By bizhat in forum Marketplace Offers
    Replies: 2
    Last Post: 10-03-2008, 11:29 AM

Visitors found this page by searching for:

how to make a powerfull server

how can do the SQl more fast

how powerful should my server

SQL longer like is faster

sql will a view make my query faster

will increasing ram on my server make mysql queries faster

sql server will more ram make queries faster

will a query run faster with more ram

how much are powerful servers

schuh

more ram faster sql server

blacknight sql fulltext

tips and tricks sql sever faster queris

SQL - more RAM faster?

more ram faster queries

powerful server delicious

how much is a powerful server

which is more faster in or SQL

faster sql queries with more ram

will more RAM make Sql server faster

how powerful is my server

more ram faster for server

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •