I have a Import function which takes a bunch of data in xml format and pastes it into my db. The problem is, that depending on the amount of data that process can take quite a long time. I see in the server log, that there are incredible lots of sql statements beeing executed do save back all the data.
How can I improve performance for that case? Is it possible to do all the operations only in memory and save them back with only one statement?
Update:
In response to HLGEM's answer:
I read through the bulk insert way, but it seems not to be very practical to me cause I have a lot of relations between the data... in order to put 100 data in a table I have to set the relations of those to other tables...
Is there a way to solve that? can I do encapsulated inserts?