If you want to get only the authors and their values, you should take a look at 
cts:element-values() or cts:element-attribute-values(). This will require 
creating a range index on the node where your authors are stored, but it will 
eliminate the need to pull all documents into memory.

You can also use cts:frequency() to determine how frequently the author is 
mentioned across all 300 documents.

Kelly

Message: 2
Date: Thu, 18 Mar 2010 07:07:16 -0700 (PDT)
From: Paul M <[email protected]>
Subject: [MarkLogic Dev General] Unfiltered ok, but what of fragment
        loading
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset="us-ascii"

Say I perform an unfiltered search that resolves to 300 fragments. Now, since 
it was unfiltered, no fragments were needed, for the *search*, to be loaded 
into memory. Only the indexes were used. Now lets say I want the authors from 
all these fragments/docs (fragment=doc since no fragmentation policy). The data 
still needs to be loaded into memory for all 300 docs even if I only a small 
piece? i.e. expanded/compressed caches(not certain?) will need to be filled 
with 300 docs?
i.e. Even if a search can be performed without pagination, this does not save 
one from blowing out the caches when the data is retrieved from the docs? 
Pagination may still be required?

Any information is appreciated...
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to