Re: [MarkLogic Dev General] Count number of triples [I]

2014-02-24 Thread John Snelson
The cts:triples() call is de-duplicating triples as it brings them back to the E-node. Other methods are faster because they avoid the de-duplication and can therefore often perform operations on D-nodes rather than centrally on the E-node. We hope to add a function that estimates the count of

Re: [MarkLogic Dev General] Count number of triples [I]

2014-02-24 Thread David Ennis
HI Anthony. Thanks for the feedback.  It is possible, but unlikely, that I have 14% difference.  Keep in mind, the 14% difference is not with fn:count(cts:triples()) vs counting sem:triple because fn:count(cts:triples()) never finishes for me. 

Re: [MarkLogic Dev General] Count number of triples [I]

2014-02-24 Thread Anthony Coates
Classification: For internal use only David, are all of your triples unique? A SPARQL-type count of triples (which should include cts:triples) would only return the number of unique triples, whereas a CTS search on sem:triple would include redundant triples in the count (I would assume). I'm