[Xapian-discuss] Node.js binding

Liam xapian at networkimprov.net
Fri Oct 21 00:16:35 BST 2011


On Thu, Oct 20, 2011 at 1:50 PM, Liam <xapian at networkimprov.net> wrote:

> On Thu, Oct 20, 2011 at 3:51 AM, Richard Boulton <richard at tartarus.org>wrote:
>
>> On 20 October 2011 06:31, Liam <xapian at networkimprov.net> wrote:
>> > Do any of these potentially hit the disk? I'd guessed that none of them
>> > did...
>> >  Enquire::Enquire(database)
>> >  Query::Query(...);
>> >  Enquire::set_query(query);
>> >  MSet::size()
>> Pretty sure all the above are safe.
>>
>> >  MSetIterator:: operator *(), get_percent(), get_document()
>> get_document() is not safe here - the documents can be lazily loaded
>> into the MSet object, so this can hit disk or network.
>>
>
> Another question... is it important to enable multiple MSetIterator
> instances per MSet? Would it be OK to bundle an MSetIterator into my
> representation of MSet?
>

Hoping for guidance on this point...


More information about the Xapian-discuss mailing list