Yes, sorry I should have specified the criteria. I have a list of a subset of the documents in the database that need to be opened (I can store this list in any form necessary), but I am experiencing performance problems since I need to iterate over the list in order to filter or choose which documents to open.
Thanks,
Jeremy
On Thu, Oct 17, 2013 at 10:18 AM, Christian Grün christian.gruen@gmail.comwrote:
Hi Jeremy,
Is there a method to open a subset of documents (not distinguishable by path) in the database with performance similar to calling db:open($db_name)?
Is there any criteria regarding the documents you want to open? If you simply want to choose the first 10 documents, you could try a position filter:
collection("db")[position() = 1 to 10]
Talking about performance: fn:collection and db:open are based on the same code, so there shouldn’t be any difference.
Hope this helps, Christian