IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to improve the performance of mass insert


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
michaeltai
Warnings : 1

New User


Joined: 23 Jul 2005
Posts: 20

PostPosted: Tue Aug 15, 2006 7:51 pm
Reply with quote

I have an input file with 950,000 lines, for each line I have to insert 28 records into the table, the batch job will run more than 6 hours, is there any way to reduce the run time if I don't want to write them to a file and use load utility afterwards? Some one told me to EXEC SQL COMMIT END-EXEC every N records. But why? Is it related to DB2 log? How much time will it save? Is there any other methods to improve the performance?
Back to top
View user's profile Send private message
raghunathns

Active User


Joined: 08 Dec 2005
Posts: 127
Location: rochester

PostPosted: Wed Aug 16, 2006 4:29 am
Reply with quote

get the exclusive control on the table space and insert records.
Back to top
View user's profile Send private message
michaeltai
Warnings : 1

New User


Joined: 23 Jul 2005
Posts: 20

PostPosted: Wed Aug 16, 2006 7:59 am
Reply with quote

It's a conversion environment we are in, so the tablespace is not accessed by anyone beside us. Also, we lock that table before we insert records.
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Queue application affecting performance CICS 12
No new posts Sort to insert record in an empty file. DFSORT/ICETOOL 5
No new posts Save SYSLOG in a MASS complex All Other Mainframe Topics 3
No new posts Two where-criteria with GT - Performa... DB2 4
No new posts exploiting Z16 performance PL/I & Assembler 2
Search our Forums:


Back to Top