[rabbitmq-discuss] rabbit_persister:extend_transaction in chunks?

Matthias Radestock matthias at lshift.net
Fri Oct 3 23:39:18 BST 2008


tsuraan wrote:
> In rabbit_amqqueue_process:terminate, all buffered messages are sent
> to rabbit_persister:extend_transaction as a huge chunk (slightly
> modified to look like acks instead of just a list of messages, I
> guess).

What is actually happening is that the ack work items (not the messages) 
are passed to rabbit_persister:dirty_work (not extend_transaction).

> It looks like it would be safe to send these messages in
> batches instead of as a huge list, but I'm not sure.  Can somebody
> confirm that sending batches of (for example) 1024 { ack, { QName,
> PKey }} tuples to extend_transaction would be the same as sending all
> of the tuples in one huge list?

That would work, but why would you want to do that? Have you obtained 
some measurements indicating that there is a performance problem in that 


More information about the rabbitmq-discuss mailing list