Improve performance optimization for db insert commit