Index xml in variable
- From: JRStern <JRStern@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 18 Oct 2007 10:12:01 -0700
Hi, more newbie questions. When I first read over the SQLServer XML
documentation, I saw you could index XML. I thought this would be great if
you had a big single XML value that you were working on. I have a 2.4mb XML
value now, and yeah, it's running slow, several minutes to do a cross apply
returning about a thousand rows. So I thought, great time to index!
Only now it seems the indexing is for XML in tables, not in a variable.
Does it pay to write a single (2.4mb) value to a table with an index?
Basically I'm shredding the XML into tables, joining the top level elements
to lower level elements, pretty common stuff.
Funny thing is, on a very similar XML structure with the same kind of
processing we had concerns about scalability, so a few weeks ago I'd created
a 2.3mb test data, and it ran in about fifteen seconds. I'm really not sure
why this one is different and running about 10x slower. FWIW, this is on a
smallish workstation (laptop), and what I see is the CPU pegged while it
runs, little or no IO.
We don't have a lot of values this big, but we have some, and might have a
few up to about twice this size.
Thanks.
Josh
.
- Follow-Ups:
- Re: Index xml in variable
- From: Kent Tegels
- Re: Index xml in variable
- From: Mike C#
- Re: Index xml in variable
- Prev by Date: Re: Un-encoding XML special characters, please help
- Next by Date: Re: Index xml in variable
- Previous by thread: Re: CDATA
- Next by thread: Re: Index xml in variable
- Index(es):
Relevant Pages
|