aspose file tools*
The moose likes JDBC and the fly likes How to  increase speed while retrieving  data from tale and showing  it in pop up win Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "How to  increase speed while retrieving  data from tale and showing  it in pop up win" Watch "How to  increase speed while retrieving  data from tale and showing  it in pop up win" New topic
Author

How to increase speed while retrieving data from tale and showing it in pop up win

Harshal Gurav
Ranch Hand

Joined: May 29, 2008
Posts: 151
Hi,
In one form ,I have used f9 key to retrieve data from table in oracle database . i.e. in any input field in my form, once I press f9 key, it execute JavaScript windows. Open command.
In that command, I called the servlet which retrieves nearly 7000 rows data from table and then it dispatch request to another jsp page which shows the related data in tabular form. The data may contain nearly 7000-8000 rows.
So when I press the f9 keys it takes around 10-12 second to open the page.
Is there any ways to open this pop up windows within 2-3 second once I hit the f9 keys.
Here with I am attaching hole code for servlet and jsp page.
Any suggestion is highly appreciated.

Thanks and Regards
Harshal


jsp code

Chandra Bhatt
Ranch Hand

Joined: Feb 28, 2007
Posts: 1707
Hi Harshal,


Even If you are getting the rows in friction of second from the database what
about the time it takes to deliver the data from server to client, the time it
takes to render and other stuffs? You may minimize the number of results
dispatched to the client to improve performance some bits.
[ October 18, 2008: Message edited by: Chandra Bhatt ]

cmbhatt
Harshal Gurav
Ranch Hand

Joined: May 29, 2008
Posts: 151
Hi chandra ,
Thanks for your post.
Currently I am working on one form which is developed using d2k and oracle 9i as database. in that form the same result will be displayed within 1 sec. now i have to change this form using java as front end and same oracle database.

Is there no any alternative for my work.
Thanks and regards
Harshal
Harshal Gurav
Ranch Hand

Joined: May 29, 2008
Posts: 151
Hi,
Can anyone have solution for above issue?

thanks and Regards
Harshal
Avi Abrami
Ranch Hand

Joined: Oct 11, 2000
Posts: 1135

Harshal,
You said:

Currently I am working on one form which is developed using d2k and
oracle 9i as database.
In that form the same result will be displayed within 1 sec.

"d2k" is Developer 2000, I presume?
Are you sure that the entire 8000 rows of the result set are returned
within one second?
The Oracle JDBC driver returns result set rows in groups of 10 (ten),
by default.
This number can be increased using the "setFetchSize()" method(s).
See interfaces "java.sql.ResultSet" and "java.sql.Statement".
Also refer to the "JDBC Developer's Guide and Reference", part of the
Oracle documentation, that explains how Oracle's JDBC driver handles these
methods.
I suggest you use pagination.
I recommend searching the Internet for the terms "jdbc" and "pagination",
or "paging".
A user cannot possibly view 8000 rows in one shot.

Good Luck,
Avi.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to increase speed while retrieving data from tale and showing it in pop up win