Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Originally posted by Frank Carver:
50MB is not so big these days.
Personally I'd parse the XML into a simple array or list representation in memory, then update the DB all in one go using whatever native bulk-update mechanism the database vendor provides.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
For a modern database, that might actually even be XML itself!
Originally posted by Frank Carver:
Illja, I have read that you can generate a database from XML but not that the database is XML. I was under the impression that XML should only be used for mark-up .
I think what Ilja was getting at is that some databases will allow you to do bulk update operations by passing an XML representation of the data to the database. Usually this just means that the database has some sort of XML parser as well as an SQL parser built in to it.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
---<br />Uncle Bob.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |