Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


E-format float update performance


E-format float update performance

Author
Message
marinehero
marinehero
Forum Newbie
Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)

Group: General Forum Members
Points: 1 Visits: 64
Hi Everyone

I have been assigned the fun job of trying to squeeze as much performance out of our "Save(s)" and have observed an interesting phenomenon. The basic gist is that we do about 80K updates to this one table that has a key followed by 105 'nullable float' columns (note I can't change the schema)...

The observation I have made has to do with the number format one supplies the server is essentially summarized below:

Method 1. update TBL set c_W200901 = 0.000000e+00, ... where key="..."
Method 2. update TBL set c_W200901 = 0.0, ... where key="..."

Now:

Method 1: yields me a total time of 266 seconds
Method 2: yields me a total time of [color=#FF0000]536[/color] seconds

This is on a Acer laptop (select @@VERSION = Microsoft SQL Server 2008 (SP1) - 10.0.2531.0 (Intel X86) Mar 29 2009 10:27:29 Copyright (c) 1988-2008 Microsoft Corporation Enterprise Edition on Windows NT 6.0 <X86> (Build 6002: Service Pack 2) )

Has anybody experienced this before? If not and you are having slow updates with float numbers...please consider above findings. Very strange indeed!

Thanks

Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search