optimize multi-threads insert