Trouble with adding a lot nodes

I have some dynamic source that I use for creating set of about 30000 nodes. If I generate array of Go-structure and then try to add all of them at once - dgraph “thinking” then stop answer.
But if I add nodes gradually by for example 500 nodes - it works well.

Could you say is it possible to add such amount nodes at once?

It depends, what are your stats? configs? I think a transaction should not have more than 1k objects. So, would be important to create a way to send batches of 1k instead of a giant one. Or you can use Bulkload instead.

BTW, if you use Ludicrous mode, I think there’s no limit there. You can literally send 400k objects in the same batch. But it depends on the resources you have and the config you have setup.