Optimizing the commit interval