[Xapian-tickets] [Xapian] #739: Expose a lazy Xapian::Document() attached to a database
Xapian
nobody at xapian.org
Tue Oct 25 18:08:01 BST 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 | Keywords:
Blocked By: | Blocking:
Operating System: All |
--------------------------------+-------------------
This can be accomplished either exposing a "lazy" flag in
`Database::get_document(Xapian::docid)`, such as passing flags or a
boolean to it, or by exposing a `Xapian::Document` constructor which takes
the database(s) as well as the `docid`.
The need for this lazy document initializer is that in Xapiand we create
`Xapian::Document` objects on the fly, many times with different
underlying database objects coming from a pool of databases; we need an
efficient/fast way of telling `Xapian::Document` from what database to get
the required document, without it having to hit the database on each
`get_document()` call.
--
Ticket URL: <https://trac.xapian.org/ticket/739>
Xapian <https://xapian.org/>
Xapian
More information about the Xapian-tickets
mailing list