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     [CLOSED] MORE vs USE. Which is more efficient?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] MORE vs USE. Which is more efficient?
 Login/Join
 
Guru
posted
For one of the reports I am working on I have to concatenate multiple data sources. These data sources can have millions of records within them. So my question is which is more efficient in concatenating MORE or USE? Also another otion I was suggested was FILEDEF (APPEND. But I am not sure if that is better than MORE or USE.

  
TABLE FILE CAR 
PRINT
COUNTRY 
DEALER_COST
WHERE COUNTRY EQ 'ENGLAND'
ON TABLE HOLD AS HDATA FORMAT FOCUS
END
-RUN

TABLE FILE CAR 
PRINT
COUNTRY 
DEALER_COST
WHERE COUNTRY EQ 'JAPAN'
ON TABLE HOLD AS H2 FORMAT FOCUS
END
-RUN

-* Using MORE
TABLE FILE HDATA
PRINT
COUNTRY
DEALER_COST
ON TABLE HOLD AS HDATA
MORE
FILE H2
END
-RUN

-*-* Using USE
-*USE
-*HDATA AS HDATA
-*H2    AS HDATA
-*END
-*-RUN

TABLE FILE HDATA
PRINT
COUNTRY
DEALER_COST
END
-RUN

This message has been edited. Last edited by: Mighty Max,


WebFOCUS 8.1.05M Unix Self-Service/MRE/Report Caster - Outputs Excel, PDF, HTML, Flat Files
 
Posts: 320 | Location: Memphis, TN | Registered: February 12, 2008Report This Post
Platinum Member
posted Hide Post
Max, the answer to your question is..... yes.

There are so many variable involved here that there will never be one final answer that applies to all databases, all operating systems, all configurations of reporting servers etc. etc.

My suggestion to you is to coordinate with your DBA(s) and try both techniques. Then you will have the correct answer for your installation.

I have been at about a dozen different clients over the years, and I have used both techniques, although never both at one place Wink


Robert F. Bowley Jr.
Owner
TaRa Solutions, LLC

In WebFOCUS since 2001
 
Posts: 132 | Location: Gadsden, Al | Registered: July 22, 2005Report This Post
Expert
posted Hide Post
If you are taking about millions of rows, then I would suggest FILEDEF APPEND, and use TABLEF, but then you will have a concatenated file that is not sorted. All depends on what you are doing with the results.


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
Virtuoso
posted Hide Post
If you have "millions" of records AND you are on Windows (and not Unix or a Mainframe), then I would not use APPEND.
I have done that and experienced terrible degradation of response time. What I found out is that when you use APPEND, new data is not added to the file but a new file is created onto which WebFOCUS first copies the old file before adding the the records from the new extraction. When I had to do this, I created many different files and then used:
!COPY FILE1+FILE2+...+FILEn FILELAST

Secondly, if you have "millions" of records, do not create intermediate FOCUS files: you are in fact creating a sequential file then loading it into a FOCUS file, thus reading and writing all your records twice.

Specifically, what is the structure of your original files? FOCUS? Sequential? SQL? Other?
Start with that, and see what is the result you want to achieve.


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report 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     [CLOSED] MORE vs USE. Which is more efficient?

Copyright © 1996-2020 Information Builders