I want to store an xml that I receive in my java web service. Reports would be run every 5 mins to pull some data in the xml elements.
I thought of two approaches to solve this problem.
Create multiple tables in the database to capture the xml data. Basically each element will have its own column in the database.
Dump the whole xml in a column that can store xml data. For reporting purposes parse the value in the query itself.
Which of the above approaches is better, particularly in terms of performance? This is critical since reports will be generated in very high frequency (every 5 mins).
The xml schema is pretty complicated and not a simple one.