Make sure the DB developers have created the appropriate indexes on the columns. Many DB2/AS400 developers tend to *not* use indexes as they are accustomed to nightly, batch processing where they don't care if it takes hours to process.
We ran into that here. Not a single table had an index for performance reasons. The proper index will increase performance many times greater than converting to a stored procedure. M!ke -----Original Message----- From: Jillian Koskie [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 17, 2006 3:00 PM To: CF-Community Subject: Re: Making SQL Faster Unfortunately every query in this 'report' contains variables so I don't think caching is going to help... The speed for running this is ridiculous --especially given the horsepower on that DB2 box. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:5:192848 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/5 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:5 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.5 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
