[Xapian-tickets] [Xapian] #267: Make autoflush in implicit transaction not commit.
Xapian
nobody at xapian.org
Thu May 8 19:38:46 BST 2008
#267: Make autoflush in implicit transaction not commit.
-------------------------+--------------------------------------------------
Reporter: richard | Owner: olly
Type: defect | Status: new
Priority: normal | Milestone: 1.1.0
Component: Library API | Version: SVN HEAD
Severity: normal | Resolution:
Keywords: | Blockedby: 266
Platform: All | Blocking:
-------------------------+--------------------------------------------------
Comment(by olly):
On the flip side, people might see their database getting bigger and
bigger, and have heard that Xapian allows searching while indexing, and
wonder why they can't see any (new) documents. Especially as this is the
current behaviour.
True, documentation could explain this, but then documentation currently
says that changes are flushed automatically every 10000 documents (which
your hypothetical user apparently hasn't read).
Also, committing changes in larger batches will tend to bloat tables
(especially the postlist table, but also others if documents are being
updated) with unused blocks - the number of such blocks grows as the batch
size does.
Your suggested behaviour can currently be achieved by using a transaction.
With this change, getting the current behaviour isn't so easy. At
present, you could count and commit explicitly every N changes, but that
wouldn't allow the user to emulate more sophisticated flush criteria.
--
Ticket URL: <http://trac.xapian.org/ticket/267#comment:1>
Xapian <http://trac.xapian.org>
Xapian
More information about the Xapian-tickets
mailing list