This article describes how to specify an appropriate batch size and DOP based on your business requirements.
In this article, the author explains how to perform batch insert in PostgreSQL to write data into a database quickly.