commit compare in-memory db performance