where did 3 m seconds go?

  • i have attached an image with this thread. my application is using jdbc drives. same operation in oracle is taking 3 secs but in SQL server it is taking 2mins.

    I took a profiler trace. seems like after every implicit transaction on/off operation i am losing 3 milli seconds. Does any one know why? and how to fix this?

  • 3ms is the tollerance for a datetime data type.

    why are you using implict transactions.

    as in most cases, taking control yourself, using explicit transactions ( begin tran .... commit/rollback ) can make your applications impact footprint smaler.

    Johan

    Learn to play, play to learn !

    Dont drive faster than your guardian angel can fly ...
    but keeping both feet on the ground wont get you anywhere :w00t:

    - How to post Performance Problems
    - How to post data/code to get the best help[/url]

    - How to prevent a sore throat after hours of presenting ppt

    press F1 for solution, press shift+F1 for urgent solution 😀

    Need a bit of Powershell? How about this

    Who am I ? Sometimes this is me but most of the time this is me

  • What is the actual SQL operation? A series of inserts, updates or deletes? I single query? You never said.

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • ekant_alone (1/25/2013)


    i have attached an image with this thread. my application is using jdbc drives. same operation in oracle is taking 3 secs but in SQL server it is taking 2mins.

    I took a profiler trace. seems like after every implicit transaction on/off operation i am losing 3 milli seconds. Does any one know why? and how to fix this?

    Sounds like RBAR. Credits to Navy beans says you're trying to use a cursor or while loop. Please post the query.

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply