Displaying 2 results from an estimated 2 matches for "do_something_slow_with_mset".
2023 Aug 18
1
does Xapian::Enquire hold an MVCC revision?
...art, or at least from a point from which you want consistency.
> I do some expensive processing on each mset window, so I always
> limit the results to limit heap usage even if I'm planning on
> going through a big chunk of the DB:
>
> $mset = $enq->get_mset(0, 1000);
> do_something_slow_with_mset($mset);
> $mset = $enq->get_mset(1000, 1000);
> do_something_slow_with_mset($mset);
> $mset = $enq->get_mset(2000, 1000);
> do_something_slow_with_mset($mset);
While the match is running, get_mset(2000, 1000) needs to track
3000 entries so this won't reduce your heap usag...
2023 Aug 17
1
does Xapian::Enquire hold an MVCC revision?
...e DB by another process in-between
->get_mset calls when reusing Xapian::Enquire objects?
I do some expensive processing on each mset window, so I always
limit the results to limit heap usage even if I'm planning on
going through a big chunk of the DB:
$mset = $enq->get_mset(0, 1000);
do_something_slow_with_mset($mset);
$mset = $enq->get_mset(1000, 1000);
do_something_slow_with_mset($mset);
$mset = $enq->get_mset(2000, 1000);
do_something_slow_with_mset($mset);
I'm not reusing Xapian::Enquire objects right now since the
original code was made for HTML pagination and there's no
guarantee...