# Can't increase ValueThreshold

**URL:** <https://discuss.dgraph.io/t/cant-increase-valuethreshold/17569>\
**Category:** Badger\
**Created:** [July 25, 2022, 12:21am UTC](https://discuss.dgraph.io/t/cant-increase-valuethreshold/17569 "2022-07-25T00:21:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kotyara85](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/kotyara85/32/9895_2.png) [@kotyara85](https://discuss.dgraph.io/u/kotyara85)\
**Post date:** [July 25, 2022, 12:21am UTC](https://discuss.dgraph.io/t/cant-increase-valuethreshold/17569/1 "2022-07-25T00:21:34Z")

</div>

### What version of Go are you using (`go version`)?

```
$ go version

1.18
```

### What operating system are you using?

macos

### What version of Badger are you using?

v3.2103.2

### Does this issue reproduce with the latest master?

yes

### Steps to Reproduce the issue

- Open a new db
- Try to write \> 1mb to value

Code I use to open db

```auto
badgerdb.DefaultOptions("").WithInMemory(true).WithValueThreshold(5242880)

```
