Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


what is the best way, in terms of performance, to do
multiple insert/update statements, a PreparedStatement or
Batch Updates?

Answers were Sorted based on User's Feedback



what is the best way, in terms of performance, to do multiple insert/update statements, a PreparedS..

Answer / ravi

It depends on the context. If you have many records that
need to be updated and you are not bothered about having
interactive session, I would choose batch. But that raises
the question, where do you store all the transactions that
need to be persisted/updated until the batch runs. Do you
want to store to a temporaray storage before updated. It
depends on the design on the system.

Is This Answer Correct ?    2 Yes 0 No

what is the best way, in terms of performance, to do multiple insert/update statements, a PreparedS..

Answer / nirmal

The easiest way is to use RMI to start the app and check to
see if it's already running.

The basic structure is this:

The main method of your app checks the RMI registry to see
if the app is started. If so, exit.
Otherwise, the main creates an instance of the app (which
is a remote object) and registers it in the RMI registry.
The class' constructor creates the GUI and displays it.
Alternatively, you could create a "start" method that you
call via RMI to start the app.

Is This Answer Correct ?    2 Yes 9 No

Post New Answer

More JDBC Interview Questions

How can we maintain the integrity of a database by using jdbc?

0 Answers  


How can you retrieve data from the resultset using jdbc?

0 Answers  


What is Type-2 Driver and when this driver is used?

2 Answers  


What is SQL Warning? How to retrieve SQL warnings in the JDBC program?

0 Answers  


How can you make the connection using jdbc?

0 Answers  


Is uri the same as url?

0 Answers  


give me a java code snippet to connect Microsoft excel through.... I am trying alot... plz help me.

7 Answers  


What class.forname will do while loading drivers of jdbc?

0 Answers  


How to check jdbc connection in linux?

0 Answers  


How do you insert images into database using jdbc?

0 Answers  


Where can I find ojdbc14 jar file?

0 Answers  


What is jdbc and why is it required?

0 Answers  


Categories