Page 1 of 2 12 LastLast
Results 1 to 15 of 27
  1. #1
    Join Date
    Aug 2007
    Location
    Malta
    Posts
    10

    Question Unanswered: SQL Server - Optimize Database

    Hi,

    I am looking for websites/forum threads/replies about SQL Server Optimization. Does anyone have any good links that can help me?

    I am Googling the net but thought I might as well ask someone on this forum since I am sure I am not the first one looking for this information.

    Thanks in advance

  2. #2
    Join Date
    Feb 2004
    Location
    One Flump in One Place
    Posts
    14,912
    Um.... here?

    Also this is a great site:
    http://sql-server-performance.com/
    Check out the articles - plenty there. SQL Server Optimisation is of course an enourmous topic. You would do well to break it down into small, relatively manageable chunks. e.g. T-SQL coding, database design (logical), database design (physical e.g. index selection), server configuration & specification etc.

  3. #3
    Join Date
    Aug 2007
    Location
    Malta
    Posts
    10
    Quote Originally Posted by pootle flump
    Um.... here?

    Also this is a great site:
    http://sql-server-performance.com/
    Check out the articles - plenty there. SQL Server Optimisation is of course an enourmous topic. You would do well to break it down into small, relatively manageable chunks. e.g. T-SQL coding, database design (logical), database design (physical e.g. index selection), server configuration & specification etc.
    Thanks, yes forums are the best place to ask and get answers.
    I agree you have to divide it into tasks, like everything.

    Obviously if you have some tips, I will be thankful

    Thanks a lot for the response, will check the site out and search the forums by using the search feature.

  4. #4
    Join Date
    Feb 2004
    Location
    One Flump in One Place
    Posts
    14,912
    Those are my tips Seriously - the topic is so huge (remember that sql-server-performance.com is an entire site devoted to sql server optimisation) that there would be no use in learning a tip or too on "sql server optimisation". You'll need to get down to basics, do a lot of reading and come back with any specifics you need clarifying.

  5. #5
    Join Date
    Apr 2002
    Location
    Toronto, Canada
    Posts
    20,002
    Quote Originally Posted by pootle flump
    ...there would be no use in learning a tip or too on "sql server optimisation".
    sure there wood

    (hey, if you're gonna misspell "two" i'm gonna match you boner for boner)

    database optimization tip #1: make sure your join columns and columns used for searching (WHERE clause) or sequencing (ORDER BY clause) have an index

    93.7% of your optimization challenges are solved right there

    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL

  6. #6
    Join Date
    Jul 2007
    Posts
    96
    Weird that no one jumped into the thread to stress how much we should avoid select *

  7. #7
    Join Date
    Feb 2004
    Location
    One Flump in One Place
    Posts
    14,912
    Quote Originally Posted by Diabolic
    Weird that no one jumped into the thread to stress how much we should avoid select *
    That's my point - one tip. But a drop in the ocean. Any of us could sit here typing for hours, tip after tip, and barely cover the topic. In particular, each tip would be without context and in isolation from the broader theme.

    Quote Originally Posted by r937
    database optimization tip #1: make sure your join columns and columns used for searching (WHERE clause) or sequencing (ORDER BY clause) have an index

    93.7% of your optimization challenges are solved right there
    Case in point. This needs to be considered in the context of sargability, seeks vs scans, clustered vs nonclustered indexes, selects vs changes, all the queries acting on tables (rather than just individual ones).

    Quote Originally Posted by r937
    sure there wood

    (hey, if you're gonna misspell "two" i'm gonna match you boner for boner)

  8. #8
    Join Date
    Jan 2007
    Location
    UK
    Posts
    11,434
    Provided Answers: 10
    As with relational theory, database optimisation is an art, not a textbook
    George
    Home | Blog

  9. #9
    Join Date
    Jul 2007
    Posts
    96
    Quote Originally Posted by georgev
    As with relational theory, database optimisation is an art, not a textbook
    What a homerun for the jackpot =)

  10. #10
    Join Date
    Feb 2004
    Location
    One Flump in One Place
    Posts
    14,912
    George - what on earth is he talking about? Is that like winning a game of cricket with a 6?


  11. #11
    Join Date
    Nov 2004
    Location
    on the wrong server
    Posts
    8,835
    Provided Answers: 6
    what your version of sql server does not have the "go faster" button?

    One biggie I am seeing a lot of at my current gig is the lack of server side pagination. sigggghhhhh. I give them stored procedures to impliment it but for some reason it takes so much work to impliment it in the application.
    “If one brings so much courage to this world the world has to kill them or break them, so of course it kills them. The world breaks every one and afterward many are strong at the broken places. But those that will not break it kills. It kills the very good and the very gentle and the very brave impartially. If you are none of these you can be sure it will kill you too but there will be no special hurry.” Earnest Hemingway, A Farewell To Arms.

  12. #12
    Join Date
    Jul 2007
    Posts
    96
    I think he just liked Greogev's answer. Just a wild guess though...

  13. #13
    Join Date
    Jan 2007
    Location
    UK
    Posts
    11,434
    Provided Answers: 10
    Quote Originally Posted by pootle flump
    George - what on earth is he talking about? Is that like winning a game of cricket with a 6?

    He lost me at "run"
    George
    Home | Blog

  14. #14
    Join Date
    Jun 2004
    Location
    Long Island
    Posts
    696
    cursors anyone ?

  15. #15
    Join Date
    Jan 2007
    Location
    UK
    Posts
    11,434
    Provided Answers: 10
    only
    Code:
    WHILE @@fetch_status <> 0
    George
    Home | Blog

Posting Permissions

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