SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Data into Staging Performance


Data into Staging Performance

Author
Message
jamesdanuk
jamesdanuk
SSC Rookie
SSC Rookie (42 reputation)SSC Rookie (42 reputation)SSC Rookie (42 reputation)SSC Rookie (42 reputation)SSC Rookie (42 reputation)SSC Rookie (42 reputation)SSC Rookie (42 reputation)SSC Rookie (42 reputation)

Group: General Forum Members
Points: 42 Visits: 114
Hi,

We are just migrating our BI Database (2005) over to a new 2012 Server.

A backup of the BI Database has been restored onto the 2012 database.

The database uses a linked server to being back data from the source system (ERP), they are both pulling back data against the same system the OLD BI Server with far last resource performs the nightly load quicker than on the new server.

I have done some tests to see where the hold up is, and isolated one query that is a bottleneck for the new server, the query itself is bringing back 5 million records.

When running the query on the old server it takes 4 minutes and 21s on the new server it takes 4 mins and 41s to pull back the records.

The inserts which area a insert INTO Select on the OLD BI Server take 4:41 and on the new BI Server take 45 minutes.

The tables are identical and have taken off the index on the PK on the new server but has no impact on performance.

Any suggestions on why the new BI Server which has far greater resource is taking over 40 minutes longer.

Am I right in thinking this could be a IO with the discs?

Thanks

James
wolfkillj
wolfkillj
SSCrazy
SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)

Group: General Forum Members
Points: 2762 Visits: 2582
jamesdanuk (10/20/2013)
Hi,

We are just migrating our BI Database (2005) over to a new 2012 Server.

A backup of the BI Database has been restored onto the 2012 database.

The database uses a linked server to being back data from the source system (ERP), they are both pulling back data against the same system the OLD BI Server with far last resource performs the nightly load quicker than on the new server.

I have done some tests to see where the hold up is, and isolated one query that is a bottleneck for the new server, the query itself is bringing back 5 million records.

When running the query on the old server it takes 4 minutes and 21s on the new server it takes 4 mins and 41s to pull back the records.

The inserts which area a insert INTO Select on the OLD BI Server take 4:41 and on the new BI Server take 45 minutes.

The tables are identical and have taken off the index on the PK on the new server but has no impact on performance.

Any suggestions on why the new BI Server which has far greater resource is taking over 40 minutes longer.

Am I right in thinking this could be a IO with the discs?

Thanks

James


I'm no expert on hardware, but since no one else has replied, here's a basic suggestion - check the Power Options on the new server. The power plan may be throttling your CPU to conserve energy.

Also, what do you mean you have "taken off the index on the PK on the new server"? If you have defined a PK, there will be an index to support it. If you've removed the PK, the table is now a heap. If your load process uses joins, MERGE joins, correlated subqueries, etc. that rely on the PK, removing the PK will have a disastrous effect on performance.

If you need more help, we'll need more details - for starters, the INSERT query and the execution plans from both the old server and the new server. This article explains what information will be needed, how to get it, and how to post it.

Jason Wolfkill
Blog: SQLSouth
Twitter: @SQLSouth
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