You could use tick tuples <https://coderwall.com/p/l2vl-w> to do that. The bolt can be configured to receive periodic ticks which you can use to do the batch insert.
On Fri, Jul 11, 2014 at 1:35 PM, 이승진 <[email protected]> wrote: > Hi all, > > > > Assume that there are one spout and one bolt. > > > > and spout emits a single log, and bolt stores it into DB for example. > > > > and they are connected using shuffle grouping. > > > > It comes to my mind that if a bolt can wait for 10 tuples to come from > spout, and request batch insert to DB, it might be beneficial > performancewise. > > > > Is there any way to make a bolt gather tuples until certain size and do > it's job? >
