>>> [EMAIL PROTECTED] 8/25/2004 11:50:01 AM >>>
On Aug 25, 2004, at 11:39 AM, Bernhard Messer wrote:

> If you already store the date time when the doc was index, you could

> use the following trick to get the last document added to the index:
>
>            while (--maxDoc > 0) {

Yes, but that's a linear search :(

>>>
You are right, in the worst case, this would be linear, but that would
require you to delete a lot of documents.  I would bet, that on average,
arguably nearly all cases, you would go through very few iterations
before finding the doc you are interested in

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to