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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts exploiting Z16 performance PL/I & Assembler 2
No new posts Insert header record with record coun... DFSORT/ICETOOL 14
No new posts Insert system time/date (timestamp) u... DFSORT/ICETOOL 5
No new posts Identify Program Insert DB2 7
No new posts Insert trailer for non empty file only DFSORT/ICETOOL 6
Search our Forums:

Back to Top