Why?  Isn't the queued data just "the writes which we want to occur"?  So, after dequeuing an operation from the head of the queue, we perform that query, and then perform a commit when the queue is empty, I guess?