Given a small set of objects (say, 10 or less) to insert, delete, or update in an application, what is the best way to perform the necessary database operations? Should multiple requests be issued, one for each object to be affected? Or should you use any XML construct that can be parsed by the database engine, so only one command needs to be issued?
I ask this because the common template in my current store seems to be to format the XML document containing all the changes, and then send this line to the database, which will be processed by the XML database engine functionality. However, using XML in this way seems rather cumbersome, given the simple nature of the task.
source
share