On Thu, Jul 5, 2012 at 12:09 PM, Ryan Dew <[email protected]> wrote: > So why is the example from the documentation so bad? The expression is fully > searchable and will only return directory properties, so having millions of > documents shouldn't matter. The only count that should really matter are the > number of directories. Then if you really wanted to you could paginate over > the results using fn:subsequence. > > xdmp:plan(xdmp:document-properties()/prop:properties/prop:directory) > > and this might be slightly more efficient: > > xdmp:plan(xdmp:document-properties()/prop:properties[prop:directory])
Never mind. They're both working now. I don't know why it timed out before. Probably a merge operation was in progress. I'm trying to calculate the actual memory needed for the data set by loading about 3 weeks of data. -- --Alex Milowski "The excellence of grammar as a guide is proportional to the paucity of the inflexions, i.e. to the degree of analysis effected by the language considered." Bertrand Russell in a footnote of Principles of Mathematics _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
