Restore: Account for value size as well (#1358)
Restore: Account for value size as well (#1358)

In the existing code, when performing a restore, we didn't consider the size of the
value. This means badger would consume a lot of memory if the data consisted of
small keys and large values. This PR fixes the issue by forcefully flushing the
buffer if it grows beyond 100 MB.
dgraph-io/badger,dgraph-io/badger