[Xapian-tickets] [Xapian] #739: Expose a lazy Xapian::Document() attached to a database

Xapian nobody at xapian.org
Thu Dec 15 07:03:16 GMT 2016


#739: Expose a lazy Xapian::Document() attached to a database
-------------------------+--------------------------
 Reporter:  Kronuz       |             Owner:  olly
     Type:  enhancement  |            Status:  new
 Priority:  normal       |         Milestone:  1.4.2
Component:  Other        |           Version:
 Severity:  normal       |        Resolution:
 Keywords:               |        Blocked By:
 Blocking:               |  Operating System:  All
-------------------------+--------------------------

Comment (by olly):

 The segfaults were only in the inmemory backend, where it's cheap to check
 on lazy creation if the docid is within the valid range, so actually this
 is easy to handle.

 So I have a working patch.  The remote backend isn't lazy, but that's OK I
 think (we can document this is essentially a hint).

 Not sure on the best name for the flag.  "Lazy" doesn't seem quite right
 (`Document` objects are already lazy at loading doc data, terms and
 values, and we might later want to provide flags to hint which of those
 you're going to want).  It's more like "don't check doc exists".

--
Ticket URL: <https://trac.xapian.org/ticket/739#comment:3>
Xapian <https://xapian.org/>
Xapian



More information about the Xapian-tickets mailing list