How to most effectively delete (drop) all the data from my database. I’m using ‘DropAll’ now… and it’s terribly slow.
I’m building some prototype ETL code and need to clear the database multiple times per day.
func dropDatabase(c *dgo.Dgraph) {
ctx := context.Background()
x.Check(c.Alter(ctx, &api.Operation{
DropAll: true,
}))
}