<div class="gmail_quote"><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_quote"><div class="im">On Thu, May 31, 2012 at 1:34 AM, Liam <span dir="ltr">&lt;<a href="mailto:xapian@networkimprov.net" target="_blank">xapian@networkimprov.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="gmail_quote"><div>On Tue, May 29, 2012 at 7:24 PM, Olly Betts <span dir="ltr">&lt;<a href="mailto:olly@survex.com" target="_blank">olly@survex.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


If you change sizeof(Xapian::docid) (and/or the sizes of other types)<br>
then that&#39;s an ABI change, so something built against xapian-core built<br>
with one docid size simply won&#39;t work with xapian-core built with a<br>
different docid size.<br></blockquote></div><div><br>So what happens when our lib tries to load or invoke the incompatible Xapian? Is it possible to prevent a crash?<br></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">



</blockquote><div><br></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div>
&gt; In what context are int64 doc ids necessary? What % of installations use<br>
&gt; them?<br>
<br>
</div></div><div>I doubt may people use them currently, quite possibly nobody does.  But<br>
that&#39;s likely to change in the foreseeable future.  We&#39;re probably near<br>
the point where you could conceivably build an index with this many<br>
documents on commodity hardware.<br></div></blockquote><div><br>We can support more than 2^32 values by converting to double (JS type Number) for 2^53. But beyond that the values stop converting correctly, meaning we&#39;d throw an overflow and the user would have to hack the binding himself.<br>


<br>Marius can you make a note to treat docid as a Number instead of uint32, and check the values from Xapian for overflow?</div></div></blockquote></div></div></blockquote><div>Will do. </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="gmail_quote"><div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_quote"><br></div></blockquote></div><div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="gmail_quote"><div></div><div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

</blockquote><div><br></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>
&gt; Seriously, lazy-loading is oversold from what I&#39;ve seen. If you have data<br>
&gt; from real-world Xapian sites that shows a material advantage for it, I&#39;d<br>
&gt; love to read...<br>
<br>
</div>Any site searching a large Xapian database is relying heavily on lazy<br>
loading.<br></blockquote></div><div><br>For an array, it&#39;s necessary, so we&#39;ll take start &amp; count args when building arrays. For objects, I question the value of lazy loading, save for very large fields.</div>
</div></blockquote></div></div></blockquote><div>For example we currently have (in quickstartsync.js) <span style="line-height:16px;color:rgb(51,51,51);font-size:12px;white-space:pre-wrap;font-family:&#39;Bitstream Vera Sans Mono&#39;,Courier,monospace;margin:0px;font-weight:bold;border:0px;padding:0px">var</span><span style="line-height:16px;color:rgb(51,51,51);font-size:12px;white-space:pre-wrap;font-family:&#39;Bitstream Vera Sans Mono&#39;,Courier,monospace"> </span><span style="line-height:16px;color:rgb(51,51,51);font-size:12px;white-space:pre-wrap;font-family:&#39;Bitstream Vera Sans Mono&#39;,Courier,monospace;margin:0px;border:0px;padding:0px">mset</span><span style="line-height:16px;color:rgb(51,51,51);font-size:12px;white-space:pre-wrap;font-family:&#39;Bitstream Vera Sans Mono&#39;,Courier,monospace;margin:0px;font-weight:bold;border:0px;padding:0px">=</span><span style="line-height:16px;color:rgb(51,51,51);font-size:12px;white-space:pre-wrap;font-family:&#39;Bitstream Vera Sans Mono&#39;,Courier,monospace;margin:0px;border:0px;padding:0px">enquire</span><span style="line-height:16px;color:rgb(51,51,51);font-size:12px;white-space:pre-wrap;font-family:&#39;Bitstream Vera Sans Mono&#39;,Courier,monospace;margin:0px;border:0px;padding:0px">.</span><span style="line-height:16px;color:rgb(51,51,51);font-size:12px;white-space:pre-wrap;font-family:&#39;Bitstream Vera Sans Mono&#39;,Courier,monospace;margin:0px;border:0px;padding:0px">get_mset_sync</span><span style="line-height:16px;color:rgb(51,51,51);font-size:12px;white-space:pre-wrap;font-family:&#39;Bitstream Vera Sans Mono&#39;,Courier,monospace;margin:0px;border:0px;padding:0px">(</span><span style="line-height:16px;color:rgb(0,153,153);font-size:12px;white-space:pre-wrap;font-family:&#39;Bitstream Vera Sans Mono&#39;,Courier,monospace;margin:0px;border:0px;padding:0px">0</span><span style="line-height:16px;color:rgb(51,51,51);font-size:12px;white-space:pre-wrap;font-family:&#39;Bitstream Vera Sans Mono&#39;,Courier,monospace;margin:0px;border:0px;padding:0px">,</span><span style="line-height:16px;color:rgb(51,51,51);font-size:12px;white-space:pre-wrap;font-family:&#39;Bitstream Vera Sans Mono&#39;,Courier,monospace"> </span><span style="line-height:16px;color:rgb(0,153,153);font-size:12px;white-space:pre-wrap;font-family:&#39;Bitstream Vera Sans Mono&#39;,Courier,monospace;margin:0px;border:0px;padding:0px">10</span><span style="line-height:16px;color:rgb(51,51,51);font-size:12px;white-space:pre-wrap;font-family:&#39;Bitstream Vera Sans Mono&#39;,Courier,monospace;margin:0px;border:0px;padding:0px">);</span> </div>
<div>I will update <a href="http://docs.md/" target="_blank">docs.md</a> as i write the code for every method that requires this. </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="gmail_quote"><div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_quote"><div><br></div>
</div>
<br>_______________________________________________<br>
Xapian-devel mailing list<br>
<a href="mailto:Xapian-devel@lists.xapian.org" target="_blank">Xapian-devel@lists.xapian.org</a><br>
<a href="http://lists.xapian.org/mailman/listinfo/xapian-devel" target="_blank">http://lists.xapian.org/mailman/listinfo/xapian-devel</a><br>
<br></blockquote></div></div><br>
</blockquote></div><br>