Author: BobBob Date: Aug 21, 2008 02:53
I don't know if this will go any faster, but have you tried shredding the XML
column and then querying it, eg
SELECT *
FROM
(
SELECT tbob_ObjData.value('(Usuario/mbUSR_Usuario/tbus_Email/text())[1]',
'VARCHAR(100)' )
FROM proOBJ_Object
) x (email_address)
WHERE email_address Like '%%c%%'
It's not a very selective search you're doing, combined with the use of the
wildcards, I'm not sure indexes are going to help much.
"byteman" wrote:
> Hi
>
> In our work we have a table with 37000 records (aprox). The table have a xml
> column, with primary xml index and a secondary path index.
> The xml structure is something like this:
>
|