I don't know of a reason why they would be different based on the versions -- someone from Engineering might. Presumably, you're asking because you're seeing different numbers. Are the database configurations the same (excepting new features)? I'm thinking particularly of fragmentation.
Are you seeing different counts? Which count is higher? Is the total number of fragments in each database different? -- Dave Cassel Vanguard Technical Manager MarkLogic Corporation<http://www.marklogic.com/> Cell: +1-484-798-8720 From: Gene Thomas <[email protected]<mailto:[email protected]>> Reply-To: Gene Thomas <[email protected]<mailto:[email protected]>> Date: Thursday, April 3, 2014 at 3:24 PM To: Dave Cassel <[email protected]<mailto:[email protected]>>, MarkLogic Developer Discussion <[email protected]<mailto:[email protected]>> Subject: Re: [MarkLogic Dev General] Collection counts using xdmp:estimate Thank you Dave. So, you would expect the counts to be the same in both environments? Gene ________________________________ From: Dave Cassel <[email protected]<mailto:[email protected]>> To: Gene Thomas <[email protected]<mailto:[email protected]>>; MarkLogic Developer Discussion <[email protected]<mailto:[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<http://www.marklogic.com/> Cell: +1-484-798-8720 From: Gene Thomas <[email protected]<mailto:[email protected]>> Reply-To: Gene Thomas <[email protected]<mailto:[email protected]>>, MarkLogic Developer Discussion <[email protected]<mailto:[email protected]>> Date: Thursday, April 3, 2014 at 2:27 PM To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[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
