accumulo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Keith Turner <ke...@deenlo.com>
Subject Re: Scanner / Batch Scanner Reuse
Date Wed, 16 Jan 2019 15:27:13 GMT
On Mon, Jan 14, 2019 at 2:05 PM gtotsline <greg.totsline@lmco.com> wrote:
>
> Hi -
>
> Can Scanners / Batch Scanners be reused?  Is there any downside to reusing a
> scanner (e.g. poorer performance)?  I assume creating a scanner takes time,
> so asking this question to see if I can avoid needlessly recreating a
> BatchScanner every time I do a query.

The main difference I can think of is that each batch scanner instance
creates a thread pool.  Other resources like tablet server connection
pools and tablet location caches are shared between batch scanner
instances.

>
> Thanks!
>
>
>
> --
> Sent from: http://apache-accumulo.1065345.n5.nabble.com/Developers-f3.html

Mime
View raw message