RE: [MarkLogic Dev General] unordered
Sent: Monday, April 30, 2007 8:14 AM
To: General Mark Logic Developer Discussion
Subject: [MarkLogic Dev General] unordered
A general question, I'm not trying to solve a problem.
What does ML do with unordered( <expr> ) ? I've run a couple of simple tests - a straight pull of a 1000 nodes, 1200 nodes based on IDs in another document (with warm caches) and I see little or no difference.
My understanding is that the fragment IDs from the fact lists will already be in database order. Any range indexes will require a sort to simplify the intersection with any additional fragment ID lists, so there is little scope for unordered to have an impact on performance.
Are there any scenarios where unordered is *likely* to provide a performance benefit?
Thanks,
Lee
<div> <div><span class="309164423-30042007">Lee -</span></div> <div> <span class="309164423-30042007"></span> </div> <div><span class="309164423-30042007">I'm pretty sure that unordered isn't going to help you much. It's implementation-dependent, and our ordering tends to be optimized as you outlined. </span></div> <div> <span class="309164423-30042007"></span> </div> <div><span class="309164423-30042007">ian</span></div> <br><div class="OutlookMessageHeader" lang="en-us" dir="ltr" align="left"> From: general-bounces@... [mailto:general-bounces@...] On Behalf Of Lee Pollington<br>Sent: Monday, April 30, 2007 8:14 AM<br>To: General Mark Logic Developer Discussion<br>Subject: [MarkLogic Dev General] unordered<br><br> </div> <div></div>Hi,<br><br>A general question, I'm not trying to solve a problem. <br><br>What does ML do with <span>unordered( <expr> )</span> ? I've run a couple of simple tests - a straight pull of a 1000 nodes, 1200 nodes based on IDs in another document (with warm caches) and I see little or no difference. <br><br>My understanding is that the fragment IDs from the fact lists will already be in database order. Any range indexes will require a sort to simplify the intersection with any additional fragment ID lists, so there is little scope for <span>unordered</span> to have an impact on performance.<br><br>Are there any scenarios where <span>unordered</span> is *likely* to provide a performance benefit? <br><br>Thanks,<br>Lee<br> </div>
RSS Feed