I want to do batch operations in a loop so a flow is the following:
create a new Dgraph object.
insert some nodes
flush to database
close the dgraph object.
And I reapeat all these 4 operations in a loop. The problem that I’ve encountered is that the memory usage of my app increase all the time until the app crashes. It seems to be a memory leak or maybe my usage of your library(Go client) is not correct? Can you advise me something?
@peter when I call Flush it ends the client session so I need a new object if I do not flush I can read new nodes. @pawan Yes it can solve my problem but in my test the set api works much slower then the bach api.