Dear Ivan, Thank you for the reply.
2009/2/17 Ivan Shcheklein <[email protected]>: >> >> 1) What may be wrong? > > Is it possible to change structure of your documents? For example, why do > you need "c" elements. It would be easier to optimize your query if we had > something like this: > > <item> > <a>date</a> > <b>t1</b> > ... etc ... > </item> Hm. The document was imported from another source. @name attribute has values like 'A#B' or '1-7'... But, of course, I can try to rename them. > > How many are there items in collections "samples" and "myChild"? "myChild" has 7211 <item>`s. "samples" is a sample for document with 162382 <item>`s. > > How many are there items in collection "myChild" which have c...@name eq "a"] > eq "some-value-from-collection-samples", c...@name eq "b"] eq > "some-value-from-collection-samples", c...@name eq "c"] eq > "some-value-from-collection-samples"? Each item has only one c...@name eq "a"] and one c...@name eq "b"] and one c...@name eq "c"]. > > Use value comparison (eq) instead of general one (=). See for details: > http://www.w3.org/TR/xquery/#id-comparisons. >... -- Regards, -Andrey ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Sedna-discussion mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sedna-discussion
