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] MODIFY performance tuning

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] MODIFY performance tuning
 Login/Join
 
Guru
posted
Hi Team,

I've got a MODIFY script that loads a hold file into a table. The job is fast if the hold file is small, and slow if it is large, un-surprisingly.

The table itself is very basic; five fields, no keys. I think the MODIFY job is doing inserts row by row, and I feel that there are probably some performance tuning opportunities here.

This is my code:

 
-SET &ECHO=ALL;
-SET &UNIQUE_ID=&UNIQUE_ID+0;
-SET &HOLDNAME='BORs_'||'&UNIQUE_ID.EVAL'||'_'||'&YYMD.EVAL'||'_'||'&TOD.EVAL';

SET ASNAMES=ON
TABLE FILE FOCCACHE/STEPONE
PRINT
  ID AS BOR_ID
  COMPUTE UNIQUEID/P20=&UNIQUE_ID;
  COMPUTE USER_ACCT/A100='&IBIMR_user';
  COMPUTE LOG_DATE/A10='&YYMD';
  COMPUTE LOG_TIME/A8='&TOD';
ON TABLE HOLD AS &HOLDNAME
END
-SET &NUMBEROFLINES=&LINES;

-** Load the data into the SQL Server table
MODIFY FILE SUMARYFORINVOICING_BOR_IDS_TO_UNIQUE_ID_V2
FIXFORM FROM &HOLDNAME
MATCH BOR_ID UNIQUEID USER_ACCT LOG_DATE LOG_TIME
 ON NOMATCH INCLUDE
   ON MATCH REJECT
CHECK 2000
DATA ON &HOLDNAME
END
-RUN
 


Any advice on making this fly?

Cheers,

Joey

This message has been edited. Last edited by: <Kathryn Henning>,


-WebFOCUS 8.2.01 on Windows
 
Posts: 318 | Location: Los Angeles, CA | Registered: November 15, 2005Report This Post
Master
posted Hide Post
You might want to take a look at the Modify Fastload facility. The syntax is: SQL SET LOADONLY, after the MODIFY command.




Pilot: WebFOCUS 8.2.06 Test: WebFOCUS 8.1.05M Prod: WebFOCUS 8.1.05M Server: Windows Server 2016/Tomcat Standalone Workstation: Windows 10/IE11+Edge Database: Oracle 12c, Netezza, & MS SQL Server 2019 Output: AHTML/XLSX/HTML/PDF/JSCHART Tools: WFDS, Repository Content, BI Portal Designer & ReportCaster
 
Posts: 822 | Registered: April 23, 2003Report This Post
Expert
posted Hide Post
Just what I was thinking as well.

FYI

By default, MODIFY will select the record from the DB to see if it needs to update or insert.

I believe that the LOADONLY setting skips the select.


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
  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] MODIFY performance tuning

Copyright © 1996-2020 Information Builders