<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">It depends. Keys are useful if you’ve to set it once, and use it for repeated subsets, or you’ve really huge data, where keeping data sorted in memory could improve speed tremendous due to cache efficiency.</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">But auto indexing would be the way to go wherever applicable. We should be expanding it when we find time next.</div> <br> <div id="bloop_sign_1424733791804035072" class="bloop_sign"><div style="font-family:helvetica,arial;font-size:13px">-- <br>Arun</div></div> <br><p style="color:#000;">On 21 Feb 2015 at 15:02:25, Mick Cooney (<a href="mailto:mickcooney@gmail.com">mickcooney@gmail.com</a>) wrote:</p> <blockquote type="cite" class="clean_bq"><span><div><div></div><div>I generally don't think of using the key, is it worth setting
<br>temporary keys for stuff like that?
<br>
<br>I would have thought that if you are doing a select on different
<br>columns (thus meaning the keys would need to be recreated) that the
<br>speed up from the key-based select would be negated by the cost of
<br>resetting keys?
<br>
<br>It's definitely something I should probably consider doing more.
<br>
<br>--  
<br>Mick Cooney
<br>mickcooney@gmail.com
<br></div></div></span></blockquote></body></html>