Solved

Bulk Insert using Java-SpringFramework-JDBCTemplate

Posted on 2006-06-08
6
4,184 Views
Last Modified: 2009-05-14
How can I use Spring Framework's JDBCTemplate to do bulk inserts? I am using Java/J2EE and MySQl server in UNIX. My goal is to make the solution performance effective.
0
Comment
Question by:dassoug
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
6 Comments
 
LVL 92

Accepted Solution

by:
objects earned 63 total points
ID: 16866486
Use the batchUpdate() methods.
0
 
LVL 4

Expert Comment

by:Yagantappa
ID: 16867955
I would suggest to use command line options for bulk inserts instead of spring JDBCTemplate
0
 

Author Comment

by:dassoug
ID: 16871855
Yagantappa,

Can you elaborate on this command line options and how can I use this from my web based application (the application will be able to upload a csv file to the server, read the file and do a bulk insert into mysql db)?

Thanks
0
 
LVL 4

Assisted Solution

by:Yagantappa
Yagantappa earned 62 total points
ID: 16879641
1. Load csv file to server. (Use multipart)
2. Thru java invoke "LOAD DATA INFILE ..."

For "LOAD DATA INFILE .." syntax, go to http://dev.mysql.com/doc/refman/5.0/en/load-data.html
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
xampp tool 12 60
check java version using powershell 13 304
hashmap order 17 42
What is the use of Forwarding Class in java 1 37
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question