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

Can I enable requests to a jdbc connection pool for a database connection to wait until a connection is available?

900


What does the jdbc databasemetadata interface?

984


What is jdbc odbc connection?

980


What is metadata in programming?

1003


What is resultsetmetadata?

904


What is CLOB and BLOB datatypes in JDBC?

1293


What is the meaning of “dirty read” in the database?

1034


Which Java and java.sql data types map to my specific database types?

1074


What do you mean by two phase commits?

1081


What is com mysql jdbc driver?

924


What is a jdbc connection pool?

947


What is difference between odbc and jdbc?

1026


What is the full form of jdbc and what is its purpose?

1007


How do I insert an image file (or other raw data) into a database?

969


What are temp tables ?

980