search for: retry_reopen

Displaying 2 results from an estimated 2 matches for "retry_reopen".

Did you mean: retry_open
2023 Aug 28
1
DatabaseModifiedError while iterating on mset
...the call to create the TermIterator since the > list of terms and wdfs is stored in a single entry per document which > is fetched when the iterator is created (it is conceivable this might > be different for a new database backend in the future I suppose). Oh wow. In Perl, I only had a retry_reopen wrapper only around the get_mset call to reopen the DB because documents get added frequently: my $mset = retry_reopen(sub { $enq->get_mset(0, 1000) }); for my $m ($mset->items) { ... } But the above was actually unsafe from modifications and I should be doing the following?: my $mse...
2023 Aug 27
1
DatabaseModifiedError while iterating on mset
On Wed, Aug 23, 2023 at 01:53:27PM +0000, Eric Wong wrote: > I'm already retrying the ->get_mset operations; but now I'm > wondering where I'd hit DatabaseModifiedErrors while inside a > Xapian::MSetIterator loop. > > I assume ->get_document is a place where it gets thrown; > but once a document is retrieved, can iterating through > terms in one document