Why would a schema make an XML column slower?
问题 I have a table with an XML column. The documents are pretty large and numerous, and I've been trying various ways to improve the performance of basic queries. Because the documentation indicates that applying an XML Schema to the column can help SQL Server to optimize queries — and because one was available — I created a schema collection and applied the type to my XML column. Query performance went off a cliff. I mean, the very simplest tests became intolerably slow. I removed the column