Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

DB2 table cursor versus Flat file read performance

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
Srinivasa Pasam

New User


Joined: 03 Sep 2008
Posts: 2
Location: UK

PostPosted: Thu Sep 11, 2008 4:28 pm    Post subject: DB2 table cursor versus Flat file read performance
Reply with quote

Hi,

We have tables that have millions of records. we need to read each record and produce the output based on specific values in some positions of each column data.

Is it faster to unload entire table into flat file and read each record and process the data or declare a cursor in program and read all records one by one and process the data.

I believe unload into flat file and process may be faster.

Please help me.
Back to top
View user's profile Send private message

XungoPejcao

New User


Joined: 04 Sep 2008
Posts: 5
Location: EspaƱa

PostPosted: Thu Sep 11, 2008 5:32 pm    Post subject: Reply to: DB2 table cursor versus Flat file read performance
Reply with quote

Hi!

If you do not have problems of storage, and you can use DASD, it is a better option unload the table to sequential file.
In case you had to use Tapes or Cartridge for problems of storage in the installation... probably if that serious better to access DB2 in cursor mode.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu Sep 11, 2008 8:33 pm    Post subject:
Reply with quote

Hello,

Quote:
I believe unload into flat file and process may be faster.
It may be. It would be worth a test or 2.

Also, if there is a high volume of data to be processed, using the unload will take the overhead away from the database leaving those resources for other tasks rather than possibly contributing to a bottleneck.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Testing rerad cursor for status with ... John F Dutcher DB2 8 Fri May 19, 2017 9:35 pm
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us