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 the different between ResultSet and RowSet?

1065


What are the advantages of database connection pooling?

962


What is benefit of using preparedstatement in java?

971


How can we retrieve data from the resultset?

1022


What are dml and ddl?

1056


What is dburl?

1032


What is xe in oracle jdbc url?

1146


How do I disallow NULL values in a table?

1045


Why do I get UnsatisfiedLinkError when I try to use my JDBC driver?

1065


Explain the locking system in jdbc & its types?

1053


What does the jdbc resultsetmetadata interface?

993


What is jdbc driver in java?

970


What is the return type of execute, executequery and executeupdate?

1159


What are database warnings in jdbc and how can we handle database warnings in jdbc?

1039


What is the benefit of having jdbcrowset implementation?

984