Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XML to database using java

Status
Not open for further replies.

raja1

Programmer
Aug 10, 2001
3
0
0
IN
i am doing a transfer of data from sql database to Oracle database using XML as transfer format as required by client.
All rows in the tables are represented in blocks in XML.
I capture these date from XML and create java objects to store each row of data and these objects are stored in vector.
The objects in vector is read and data is inserted into database.
When number of rows is of the order of 800000(i.e i create 800000 objects), Out of memory error is encountered.Below these row size the program works efficiently.Alternatively trying to insert the data in database immeditely after reading each XML block (i.e each row),the application performs very slowly.Can any one give a solution to this problem.i use SAX parser.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top