aspose file tools
The moose likes JDBC and the fly likes database Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "database" Watch "database" New topic
Author

database

suresh pulapally
Ranch Hand

Joined: Mar 15, 2005
Posts: 47
hi all,

iam using preparedstatement to fetch data from db,the no of rows nearly(40k)
so its taking long time(appr 10min),but my requirement is one minute...
pls help me how to do..(iam using 4th driver)
Jeff Grant
Ranch Hand

Joined: Dec 19, 2001
Posts: 169
Might want to post your code which is doing the query. This code should include both the connection string as well as the prepared statement query sequence / strings.
Ed Wallen
Ranch Hand

Joined: Feb 11, 2002
Posts: 34
Do you have indexes set up at the database level??? Do you really need to retrieve 40,000 rows? Take a look at implementing paging. You'll need to post more info in order for any of us to be of more help.

-Ed
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
As it is about 40k rows. I assume you are not filtering records. In full table scan indexes can't help. But yes pagination is important. I dont think you are gonna display full 40k rows in one shot.
suresh pulapally
Ranch Hand

Joined: Mar 15, 2005
Posts: 47
hi

i required total no of rows bcoz my requirement is to display tree structure...i never used pagination , i need some information on pagination.
 
I agree. Here's the link: http://jrebel.com/download
 
subject: database
 
Similar Threads
query regarding locale in struts
how to highlight error field in struts html form?
EJB lookup not working
websphere deployment process
"exists" Clause on JPQL