K***@cognizant.com
2013-10-09 09:58:48 UTC
Assume that I have a cts:search query which finds list of documents in a particular collection.
Is it better to use fn:collection or cts:collection-query for filtering based on collection.
For ex:
Should I use cts:search(/test,cts:collection-query("test-docs")) or cts:search(fn:collection("test-docs")/test)
Which query will perform better if we have millions of documents starting with /test that can be present in different collections?
Thanks,
Karthik
This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient(s), please reply to the sender and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email, and/or any action taken in reliance on the contents of this e-mail is strictly prohibited and may be unlawful.
Is it better to use fn:collection or cts:collection-query for filtering based on collection.
For ex:
Should I use cts:search(/test,cts:collection-query("test-docs")) or cts:search(fn:collection("test-docs")/test)
Which query will perform better if we have millions of documents starting with /test that can be present in different collections?
Thanks,
Karthik
This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient(s), please reply to the sender and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email, and/or any action taken in reliance on the contents of this e-mail is strictly prohibited and may be unlawful.