Issue Details (XML | Word | Printable)

Key: DERBY-822
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Knut Anders Hatlen
Reporter: Knut Anders Hatlen
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Derby

Client driver: Pre-fetch data on executeQuery()

Created: 18/Jan/06 07:52 PM   Updated: 30/Jun/09 04:12 PM
Return to search
Component/s: Network Server
Affects Version/s: 10.2.1.6
Fix Version/s: 10.2.1.6

Time Tracking:
Issue & Sub-Tasks
Issue Only
Not Specified

File Attachments:
  Size
File Licensed for inclusion in ASF works DERBY-822-v1.diff 2006-02-17 10:58 PM Knut Anders Hatlen 813 kB
Text File Licensed for inclusion in ASF works DERBY-822-v1.stat 2006-02-17 10:58 PM Knut Anders Hatlen 1 kB
File Licensed for inclusion in ASF works DERBY-822-v2.diff 2006-04-05 09:56 PM Knut Anders Hatlen 12 kB
Text File Licensed for inclusion in ASF works DERBY-822-v2.stat 2006-04-05 09:56 PM Knut Anders Hatlen 0.5 kB
File Licensed for inclusion in ASF works DERBY-822-v3.diff 2006-04-18 04:51 AM Knut Anders Hatlen 10 kB
Text File Licensed for inclusion in ASF works DERBY-822-v3.stat 2006-04-18 04:51 AM Knut Anders Hatlen 0.5 kB

Issue & fix info: Release Note Needed
Bug behavior facts: Performance
Resolution Date: 18/Apr/06 01:55 PM

Sub-Tasks  All   Open   
No sub-tasks match this view.

 Description  « Hide
Currently, the client driver does not pre-fetch data when
executeQuery() is called, but it does on the first call to
ResultSet.next(). Pre-fetching data on executeQuery() would reduce
network traffic and improve performance.

The DRDA protocol supports this. From the description of OPNQRY (open
query):

  The qryrowset parameter specifies whether a rowset of rows is to be
  returned with the command. This is only honored for non-dynamic
  scrollable cursors (QRYATTSNS not equal to QRYSNSDYN) and for
  non-scrollable cursors conforming to the limited block query
  protocol. The target server fetches no more than the requested
  number of rows. It may fetch fewer rows if it is restricted by extra
  query block limits, or if a fetch operation results in a negative
  SQLSTATE or an SQLSTATE of 02000.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
No work has yet been logged on this issue.