Which is better in terms of performance: xmltable or xmlsequence in Oracle?
Asked
Active
Viewed 2,317 times
1
-
Why don't you try both on your `DEV` or `TEST` environment? That way you'll have the answer tailored specifically to your exact requirements and hardware/network etc. – Ollie Apr 23 '12 at 08:02
2 Answers
3
I think internally the execution plan is the same. Test the resource usage and execution plan using "set autotrace on"
Check out this article: http://www.liberidu.com/blog/2007/07/10/about-tablexmlsequence-and-xmltable/

Rob van Laarhoven
- 8,737
- 2
- 31
- 49
-
I have used both approaches , using the xmltable is more clean and you can specify the data type of each column you are extracting , whereas in xmlsequence you will have to extract and do like "TO_DATE(EXTRACTVALUE (T2.column_value, 'ROW/LAST_UPDATING_DATE'),'DD-MON-YYYY') LAST_UPDATING_DATE".I have already checked the link http://www.liberidu.com/blog/2007/07/10/about-tablexmlsequence-and-xmltable/, i am looking for more factual inputs – abhi Apr 23 '12 at 09:40
-
-
0
With Respect to the question, Please find some Factual points
- Deprecated in 12c+
- Performance wise XMLTABLE Is Good, if you have 2 or more PATH Expressions to be retrieved,
- Parsing for each Column takes time, instead you can create view using XML TABLE and XMLTYPE Refer this Link xmlTable
- Additional Reference - https://www.igorkromin.net/index.php/2016/03/15/oracle-database-xmltable-vs-extractvalue-performance/

Karthik_Rajendiran
- 43
- 8