Batch import large amount of data

Have you tried bulk loader: https://dgraph.io/docs/deploy/fast-data-loading/bulk-loader/ ?