a servlet to access two db at the same tiem

R

RandyTh

I am trying to create the servlet that searchs tables with the same
strcuture but on different DB( Oracle and MSSQL ) and get search result
based on the search condition specified. Currently I am going one by one to
through the SQL sentence and assemble the search result. However, the each
table has about 400000 rows so takes time get all result
back to the browser. I was thinking if i can throw the sql sentence to each
table on the difference db at the same time
time takes to get the search result will be shorter. Is it possible to do
this?

W
 
R

Richard Huddleston

RandyTh said:
I am trying to create the servlet that searchs tables with the same
strcuture but on different DB( Oracle and MSSQL ) and get search result
based on the search condition specified. Currently I am going one by one to
through the SQL sentence and assemble the search result. However, the each
table has about 400000 rows so takes time get all result
back to the browser. I was thinking if i can throw the sql sentence to each
table on the difference db at the same time
time takes to get the search result will be shorter. Is it possible to do
this?

W

Yes
 
M

Malte

RandyTh said:
I am trying to create the servlet that searchs tables with the same
strcuture but on different DB( Oracle and MSSQL ) and get search result
based on the search condition specified. Currently I am going one by one to
through the SQL sentence and assemble the search result. However, the each
table has about 400000 rows so takes time get all result
back to the browser. I was thinking if i can throw the sql sentence to each
table on the difference db at the same time
time takes to get the search result will be shorter. Is it possible to do
this?

W
Use multithreading. If the two database systems are on different
machines, you should see a big improvement.
You are not going to put 400K rows unto a browser, I take it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top