Go Back   CORTEX Forums > Local Happenings > CORTEX Blogs > BI Monkey
Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read

Loops and Lookups ? a performance problem

This is a discussion on Loops and Lookups ? a performance problem within the BI Monkey forums, part of the CORTEX Blogs category; A bit of a performance tuning nugget around loops and lookups which I faced recently. We have a scenario where we are looping a few hundred times to execute a ...


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 23rd March 2010, 01:40 PM   #1
Guru
 
Join Date: Jun 2009
Posts: 122
James Beresford is on a distinguished road
Thumbs up Loops and Lookups ? a performance problem

A bit of a performance tuning nugget around loops and lookups which I faced recently.

We have a scenario where we are looping a few hundred times to execute a series of*changing SQL statements, then passing the data through lookups before writing to target. We are doing this with a mix of the standard lookup and Cozyroc’s Lookup Plus*task. However we were finding that while executing each*SQL query took less than a second, the SSIS package was taking a long time to run each loop.

The loop was taking the query and then pausing for a while before moving any data. Eventually we realised this pause was SSIS building up the caches for the lookups. The standard lookups were running off a pre-built cache but the CozyRoc task doesn’t support caching and had to rebuild each lookup cache every time the loop was instantiated – not a big job but repeated a few hundred times those few seconds soon mount up.

The lessons here are:
  1. If you are reusing a lookup multiple times, use the Cache Transform*to preload the cache into memory (2008 onwards)
  2. Be aware of the performance implication of caching lookups and the fact that they will be rebuilt each time the Data Flow is started

Get More from the original blog...
James Beresford is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiTweet this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Does the NBA have a gambling problem? admin Prediction Markets News Feeds 0 10th January 2010 01:27 AM
S&P says low doc not a problem for AOFM Latest News Headlines 2009 Q4 News Headlines 0 14th October 2009 11:03 AM
SSIS Loops that do not fail James Beresford BI Monkey 0 3rd August 2009 07:05 PM
Do? While / Until Loops in SSIS James Beresford BI Monkey 0 23rd July 2009 10:30 PM
The Problem with the Relational Database Tony Bain Innovations in Data Management 0 26th June 2009 11:27 AM


All times are GMT +11. The time now is 02:28 PM.

© The Business Intelligence Group

Search Engine Optimization by vBSEO