Keith,

I was thinking about that a year or so ago...do you think there'd be any problems with modifying the batch scanners to share a thread pool per JVM? Or be able to pass in a thread pool. I think the reason was we were trying to limit the client scans threads globally in the JVM. But it hasn't been a huge issue.

Andrew

On 1/16/19 10:27 AM, Keith Turner wrote:
On Mon, Jan 14, 2019 at 2:05 PM gtotsline <[email protected]> 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

Reply via email to