[Xapian-devel] buffered tables, sessions, and transactions

Olly Betts olly at survex.com
Wed May 19 16:49:50 BST 2004


On Wed, May 19, 2004 at 01:25:22PM +0100, James Aylett wrote:
> Would you be talking about only requiring flush() if there is a
> transaction in progress?

I'm kind of thinking aloud - that was one of the possibilities.  Well,
not requiring it per se, but not doing it implicitly in that case.

> I'd be heavily opposed to the requirement outside transactions,
> because it run contrary to how you'd expect most bindings languages to
> behave, even if you could expect it for a C++ library.

It's probably suprising even for a C++ library.  I think perhaps we
should *encourage* use of an explicit flush() (rather than mandate it).
It means that any errors will actually be reported.

Cheers,
    Olly




More information about the Xapian-devel mailing list