cross apply xml query performs exponentially worse as xml document grows
What makes the cross apply query perform so poorly on this simple XML document, and perform exponentially slower as the dataset grows? It Is the use of the parent axis to get the attribute ID from the item node. It is this part of the query plan that is problematic. Notice the 423 rows coming … Read more