Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2008
    Posts
    43

    Unanswered: Optimization steps

    Generally speaking when you want to optimise an application that relies on a database which is the order of the following optimization techniques

    a) optimizing the spread of the pysichal elements of the database on different disks of the server
    b) optimizing the use ot the RAM
    c) optimizing the SQL
    d) opimizing the OS

    Thank you,
    Ronnyy

  2. #2
    Join Date
    Feb 2004
    Location
    One Flump in One Place
    Posts
    14,912
    C, C and C.

    A and B should likely have been sorted way before your application gets hold of it. B is unlikely to change over time, A might do.
    Testimonial:
    pootle flump
    ur codings are working excelent.

  3. #3
    Join Date
    Nov 2004
    Location
    on the wrong server
    Posts
    8,835
    Provided Answers: 6
    I would do it in this order...

    1. Analyze index usage. Nothing is cheaper and easier than slapping an index on a column that is getting table scanned.

    2. Examine the poor performing sql for problems in the execution plan that can be solved by rewriting the query in a professional manner.

    3. Analyze the database structure and how it is being used by the poor performing sql to see if the structure can be altered or augmented to solve the problem.

    4. OS. Just make sure it is optimized for background applications.

    5. Physical elements of the database. If you have multiple drives or arrays to play with, consider separating some of your indexes from their data and spread out your frequently used tables etc...

    6. Finally at step six you fall on the floor and throw a temper tantrum until someone buys you new hardware with faster disks, more arrays, better cpu(s) and more RAM.
    “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.

  4. #4
    Join Date
    Feb 2008
    Posts
    43
    Thank you very much for your answers.

    Pootle flump, C was my answer as well, thank you for giving me confidence that my answer was right.

    Thrasymachus thank you for the complete list of steps to be followed.

    I just realized that I was unsure because I've been listening to some podcasts, that said that software developers tend to start optimizing with the SQL, DBAs start with the indexes and database structure, and people with system administration backround start with the OS tuning.

    Thank you for clearing this out for me.

  5. #5
    Join Date
    Nov 2004
    Location
    on the wrong server
    Posts
    8,835
    Provided Answers: 6
    Quote Originally Posted by ronnyy
    I just realized that I was unsure because I've been listening to some podcasts, that said that software developers tend to start optimizing with the SQL, DBAs start with the indexes and database structure, and people with system administration backround start with the OS tuning.
    Do not forget that people can write sloppy application code that does not perform optimaly as well and true Jedi can fix the problem whereever it resides.
    “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.

Posting Permissions

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