January 19, 2021 at 12:10 pm
I am using SQL Server 2008 R2.
While using XML data type and XQuery slow (50 Times slow) compare to Non-xml Method(Relational Database Model) even after adding XML Index.
So is it ok if we move from XML to Non-XML option?
January 19, 2021 at 12:21 pm
In all seriousness, how do you expect us to be able to say whether this is OK or not without no knowledge about your system or what the impact would be?
Yes, I much prefer to store data from XML documents in relational format than as an XML document, but I have absolute no knowledge of what may break.
[font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]
January 20, 2021 at 4:38 am
If Execution speed is the only issue, can we move ?
January 20, 2021 at 4:26 pm
If Execution speed is the only issue, can we move ?
There's only one way to know for sure... stand up an instance on your dev box and test it.
I do strongly agree with Erland. If it were up to me, I wouldn't allow XML to be stored in SQL Server. There could be exceptions to that but generally, IMHO, not.
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply