Quote:
Originally Posted by irfanmaroof
amit i have told this thing many time that application is not effecting the fetch process.I have tried this with sample application in which i am just fetching the records with out any other processing.but fetching is still slow.
tell me the other possibilities to fetch data in C++ from DB2.
|
what I meant to say, break the fetch processing in couple of chunks and do parallel fetch. Here is a small test I did on my great desktop machine

, which I know how powerful is, as I am getting 9MB/min.
First, I ran with one thread doing the fetch, application took : 619 sec
Second, two threads doing fetch paralleled, application took : 317 sec
Third, three threads doing fetch paralleled, application took : 228 sec
Almost linear scalability. Off course it depends on application design whether you can break the result set in such a way that all the threads can pick unique set and work on that.