Results 1 to 2 of 2
Thread: xml upload very slow
- 06-09-2008, 07:18 AM #1
Member
- Join Date
- Jan 2008
- Posts
- 24
- Rep Power
- 0
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).
- 06-10-2008, 06:24 AM #2
Member
- Join Date
- Jun 2008
- Location
- Delhi, India
- Posts
- 6
- Rep Power
- 0
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
Similar Threads
-
slow JasperReport
By bbq in forum Advanced JavaReplies: 3Last Post: 02-11-2008, 08:34 AM -
eclipse very slow
By katie in forum EclipseReplies: 2Last Post: 11-05-2007, 10:20 AM -
PredifinedStatment is too slow for me?
By liorb in forum JDBCReplies: 1Last Post: 07-31-2007, 04:53 PM -
Oracle Resultset slow
By Peter in forum JDBCReplies: 2Last Post: 07-04-2007, 01:56 PM -
Slow reports in Netbeans
By Alan in forum NetBeansReplies: 1Last Post: 05-29-2007, 03:47 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks