MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Insert Vs Load

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
drammo
Beginner


Joined: 13 Jan 2006
Posts: 20
Topics: 10

PostPosted: Wed Jan 25, 2006 1:27 pm    Post subject: Insert Vs Load Reply with quote

I have a program which formats data and inserts into a DB2 table. For each run, there will be thousands of inserts. Performance wise, is it better to write the formatted records into a dataset and then do a LOAD RESUME?

All thoughts are welcome.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Wed Jan 25, 2006 1:51 pm    Post subject: Reply with quote

drammo,

A Load utlitiy with sorted(on the primary key) input will always outperform program Inserts.

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
drammo
Beginner


Joined: 13 Jan 2006
Posts: 20
Topics: 10

PostPosted: Thu Jan 26, 2006 9:09 am    Post subject: Reply with quote

Will LOAD be an overkill for a few thousand records that too when the table is not being accessed by any other application?
Back to top
View user's profile Send private message
Manas Biswal
Intermediate


Joined: 29 Nov 2002
Posts: 382
Topics: 27
Location: Chennai, India

PostPosted: Thu Jan 26, 2006 9:44 am    Post subject: Reply with quote

drammo,

Quote:

Will LOAD be an overkill for a few thousand records that too when the table is not being accessed by any other application?


How can load be an overkill when a program isn't. I would say that coding a program to do the inserts would be an overkill.
And if the table is not being accessed by any other application, thats a perfect candidate for load.

HTH...Regards,
Manas
_________________
There is no path to peace. Peace is the path.
- Mahatma Gandhi (1869-1948)
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group