Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [Case-Opened] SQL Query vs TABLE Request

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[Case-Opened] SQL Query vs TABLE Request
 Login/Join
 
Platinum Member
posted
Hi All,

Just want to know whether SQL query fetches the data faster or TABLE FILE Filename....END does faster from DB2 table?

Are there any factors on which we would be sending a request to fetch the data from DB2 table?


WebFOCUS 7.6.4, Mainframe Focus
Windows XP, All Output Formats
 
Posts: 135 | Registered: November 30, 2010Report This Post
Expert
posted Hide Post
It should take the same amount of time - if your TABLE FILE WebFOCUS request is properly written.

WebFOCUS translates a TABLE FILE to a SQL SELECT statement, while developing a report, you should turn SQL traces on to view the generated SQL and warnings - this helps you write cleaner WebFOCUS code.

Here's a good FocalPoint thread: Run Faster. There's lots more on this subject.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Expert
posted Hide Post
Also keep in mind, that the DB2 adapter created DB2 SQL.

The SQL will be as good as can be generated for the information on the table in the master file and access file.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Platinum Member
posted Hide Post
Thanks Francis and Waz.


WebFOCUS 7.6.4, Mainframe Focus
Windows XP, All Output Formats
 
Posts: 135 | Registered: November 30, 2010Report This Post
Guru
posted Hide Post
We found that SQL performs better then TABLE FILE against DB2, but we also had a SUB-HUB environment setup. We found that using TABLE FILE translated the SQL to be not as efficient. My understanding from IBI, that in a SUB-HUB the TABLE FILE is being translated a few times. Not sure how your environment is setup. To each is own of course, only testing would tell you.


WebFOCUS 8.1.05
 
Posts: 496 | Registered: January 04, 2008Report This Post
Guru
posted Hide Post
Also, keep in mind that a simple TABLE would probably be as good as the SQL code, but as soon as you include any DEFINEs etc, there's a risk of returning a huge answer set, because the DB can't evaluate it.
The approach we have is issuing a PREPARE to create the extract and try to perform as much conversions etc to the DB.
Another advantage is you can issue DEFINE and TABLE directly on the PREPAREd extract, instead of the TABLE FILE SQLOUT stuff.


WebFOCUS DS 8.0.06/08 DS/AS
WebFOCUS RS 8.0.08 (Linux/IBM i)
WebFOCUS Client 8.0.06 (Linux)
 
Posts: 319 | Location: Stockholm, Sweden | Registered: February 04, 2004Report This Post
Guru
posted Hide Post
If more Joins to be done, on the reteriving dataset go for SQL query. Else, go for TABLE or TABLEF as required.


Thanks,

Ramkumar.
WebFOCUS/Tableau
Webfocus 8 / 7.7.02
Unix, Windows
HTML/PDF/EXCEL/AHTML/XML/HTML5
 
Posts: 394 | Location: Chennai | Registered: December 02, 2009Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [Case-Opened] SQL Query vs TABLE Request

Copyright © 1996-2020 Information Builders