Thank you Dave.

So, you would expect the counts to be the same in both environments?
 
Gene



________________________________
 From: Dave Cassel <[email protected]>
To: Gene Thomas <[email protected]>; MarkLogic Developer Discussion 
<[email protected]> 
Sent: Thursday, April 3, 2014 1:11 PM
Subject: Re: [MarkLogic Dev General] Collection counts using xdmp:estimate
 


If the collection lexicon is on, I would expect it to be correct. 


-- 
Dave Cassel
Vanguard Technical Manager
MarkLogic Corporation
Cell:  +1-484-798-8720



From: Gene Thomas <[email protected]>
Reply-To: Gene Thomas <[email protected]>, MarkLogic Developer Discussion 
<[email protected]>
Date: Thursday, April 3, 2014 at 2:27 PM
To: "[email protected]" <[email protected]>
Subject: [MarkLogic Dev General] Collection counts using xdmp:estimate


Will this query give me a vaild count result?
for $collection in cts:collections()
return
element result {
   element collection {$collection},
   element count {xdmp:estimate(collection($collection))}
}

Also, if I backup a database on an ML 4.2-7 cluster and restore it on ML7, 
should running the same query give the same results.
for $collection in cts:collections()
return
element result {
   element collection {$collection},
   element count {xdmp:estimate(collection($collection))}
}
 
Gene
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to