<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body>
<p> </p>
<p>Hi,</p>
<p>Yes, please file it.</p>
<p>Auto converting x=='A' & y==23 to the relevant join syntax internally might be possible in the distant furture as well (declarative i rather than imperative i). And might be needed sooner rather than later depending on how we implement the syntax for joining using secondary keys (creating set2key is the easy part).</p>
<p>Matthew</p>
<p> </p>
<p>On 25.03.2013 08:52, stat quant wrote:</p>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px; width:100%"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<p>Hello data.tablers, </p>
<div class="gmail_quote">I am aware of binary search using J in data.table selects, this works for "AND" if your table is keyed by 2 columns like<br /><br />setkey(DT,x,y)<br />DT[J('A',23),] DT[x=='A' & y==23] #but binary search is much faster for big/large tables<br /><br />But does it work with "OR" ??<br />There is a post on SO along those lines <a href="http://stackoverflow.com/questions/15597971/can-we-do-binary-search-in-data-table-with-or-select-queries">http://stackoverflow.com/questions/15597971/can-we-do-binary-search-in-data-table-with-or-select-queries</a><br /> What about a feature request ?<br /><br />Cheers<br />Colin</div>
</blockquote>
<p> </p>
<div> </div>
</body></html>