• XML with indexes is very slow and takes lots of memory.

    I've made some tests with XML without index, with indexes and data stored "vertically" (to store data in a database where the user can define whatever they want) and XML was always very very slow no matter what.

    The best way to use XML, in this case, a very large XML, is to store it in temp table.



    If you need to work better, try working less...