Focal Point
[SHARING] SQL optimization

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/5097036126

June 25, 2012, 01:58 PM
BobSh
[SHARING] SQL optimization
We have both Oracle and SQL Server. I've been testing access to both and found the settings below have greatly improved retrieval.

-* Oracle optimization settings
ENGINE SQLORA SET FETCHSIZE 5000
ENGINE SQLORA SET OPTIMIZATION ON

-* SQL Server optimization settings
ENGINE SQLMSS SET CURSORS CLIENT
ENGINE SQLMSS SET FETCHSIZE 5000
ENGINE SQLMSS SET OPTIMIZATION ON

I'm wondering why IBI doesn't include these settings in their native adapters since, I believe, they are valid for any query or is there a drawback to automatically using these settings?

Do others have experiences they would like to share to improve performance? I tried various values for the fetchsize option reading 3M rows and creating a hold file with PRINT * just to exercise it and found the FETCHSIZE of 1000, 2000, 3000, 4000, and 5000 only varied by about 5 seconds. Thanks.

This message has been edited. Last edited by: BobSh,


WebFOCUS 7.7.05M, gen 144, Windows 2008 Server R2 64-bit, Tomcat 6.0.33, IIS 7.0, SQL Server, Excel 2013, PDF, HTML, FOCUS files.