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?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is metadata in programming?

1003


What are different parts of a url?

982


Does jdbc use ssl?

928


Explain the difference between inner and outer join ?

1028


What do you mean by jdbc batch processing and what are the advantages of using jdbc batch processing?

987


What is a lock in jdbc?

953


Can we have foreign key reference to a non primary key column ?

980


What is difference between statement and preparedstatement in jdbc?

908


What is statement and resultset in jdbc?

941


What is the use of jdbc?

984


Explain the main method?

1044


What is a connection string used for?

970


What is url in jdbc connection?

948


Which is better jpa or jdbc?

907


What is a jdbc driver and how many jdbc drivers are available?

1047