If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Slow data fetching from DB2 in C++ Application

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-04-12, 07:21
irfanmaroof irfanmaroof is offline
Registered User
 
Join Date: Jan 2012
Posts: 53
Slow data fetching from DB2 in C++ Application

Hi

My application that is fetching data from DB2 using CLI API.
The application is getting complete data from a table in bulks by using Default forward cursor in SQLFetchScroll(SQL_FETCH_NEXT).I am facing a problem that the data retrieval from DB2 using CLI is very slow i want to make it efficient .

Currently I am able to fetch 1GB data in 50 minute that is very slow.

what is the efficient way to get data from DB2 using CLI ?
Reply With Quote
  #2 (permalink)  
Old 01-04-12, 09:21
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Where is the application running? Is it on a remote client? What sort of network is between the client and server?

What version of DB2 and OS are you using?

Andy
Reply With Quote
  #3 (permalink)  
Old 01-04-12, 09:34
tonkuma tonkuma is online now
Registered User
 
Join Date: Feb 2008
Location: Japan
Posts: 2,193
Quote:
The application is getting complete data from a table in bulks ...
So, what do you want to do after fetching complete data from a table?
Reply With Quote
  #4 (permalink)  
Old 01-04-12, 12:07
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
Is this the same question as in this thread? C++ cli application
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #5 (permalink)  
Old 01-05-12, 04:17
amitrai4 amitrai4 is offline
Registered User
 
Join Date: Aug 2011
Posts: 46
seems same question from other thread. How about sharing some performance data ? If you are on V9.7, you can run monreport.dbsummary ,

e.g. db2 "call monreport.dbsummary(120)" , where 120 is seconds and I think you go upto 3600.
Reply With Quote
Reply

Tags
application with db2, cli c++ application

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On