Offer an option to use less memory when developing

I had a similar issue and found no solution except restarting dgraph from times to times as its memory keeps growing but never reduces.