Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-09-2008, 08:18 AM
Member
 
Join Date: Jan 2008
Posts: 16
sandeeprao.techno is on a distinguished road
xml upload very slow
Hi all,

I am uploading xml files into mysql database by parsing them...

I am able to upload the files, but it is taking a very long time to upload the files which have some 1,00,000 rows.

I am sometimes also getting the heap space exceptions...

How to increase the speed of uploading the xml data...
Do I need to increase my virtual memory.(I am presently using 512 mb).
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-10-2008, 07:24 AM
Member
 
Join Date: Jun 2008
Location: Delhi, India
Posts: 6
upadhyay_java_guru is on a distinguished road
You should increase the virtual machine to avoid the heap space error and for speed, You should follow the following step:-
1. Create the class XYZ, class variable will all xml child tag.
2. Create Another Class XYZList, extends from arraylist.
3. Parse the xml, and create the XYZ object and set all value of xml tag to its object, and put inside the XYZList object.

4. After this, get connection object and put the data inside the database one by one.

RAM should be atleast 1gb for gud speed
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
slow JasperReport bbq Advanced Java 3 02-11-2008 09:34 AM
eclipse very slow katie Eclipse 2 11-05-2007 11:20 AM
PredifinedStatment is too slow for me? liorb Database 1 07-31-2007 05:53 PM
Oracle Resultset slow Peter Database 2 07-04-2007 02:56 PM
Slow reports in Netbeans Alan NetBeans 1 05-29-2007 04:47 PM


All times are GMT +3. The time now is 08:26 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org