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 > Block Transfer of Data

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-16-04, 11:14
brianhills brianhills is offline
Registered User
 
Join Date: Feb 2004
Posts: 2
Block Transfer of Data

Hi all,

I have written a Java program that performs large queries on a MySQL database. In order to do this I have used a feature of the MySQL driver which alows me to pull back the results in blocks of rows rather than one large object.

Now I am tasked with porting the database to DB2 and was wondering if there is a similar blocking mechanism used by the drivers supplied with the latest DB2 release or would I have to look at a commercial driver? I haven't found much useful information on the web so far.

Thanks

Brian
Reply With Quote
  #2 (permalink)  
Old 02-16-04, 12:35
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Re: Block Transfer of Data

Quote:
Originally posted by brianhills
Hi all,

I have written a Java program that performs large queries on a MySQL database. In order to do this I have used a feature of the MySQL driver which alows me to pull back the results in blocks of rows rather than one large object.

Now I am tasked with porting the database to DB2 and was wondering if there is a similar blocking mechanism used by the drivers supplied with the latest DB2 release or would I have to look at a commercial driver? I haven't found much useful information on the web so far.

Thanks

Brian
DB2 does block the rows it returns but it happens transparently to the application.

You can control the block size by changing rqrioblk DBM parameter and by specifying "OPTIMIZE FOR n ROWS" in the SQL query. Please see "Administration Guide: Performance", "Row blocking" section for more details.
Reply With Quote
  #3 (permalink)  
Old 02-17-04, 06:42
brianhills brianhills is offline
Registered User
 
Join Date: Feb 2004
Posts: 2
Thanks, I'll give it a try.
Reply With Quote
Reply

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