# Limit resource usage by Badger

**URL:** <https://discuss.dgraph.io/t/limit-resource-usage-by-badger/3958>\
**Category:** Badger\
**Created:** [January 29, 2019, 7:59pm UTC](https://discuss.dgraph.io/t/limit-resource-usage-by-badger/3958 "2019-01-29T19:59:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nav](https://avatars.discourse-cdn.com/v4/letter/n/6a8cbe/32.png) [@nav](https://discuss.dgraph.io/u/nav)\
**Post date:** [January 29, 2019, 7:59pm UTC](https://discuss.dgraph.io/t/limit-resource-usage-by-badger/3958/1 "2019-01-29T19:59:07Z")

</div>

Hello,

I’m trying to use Badger for a light weight RESTful web service. There are constraints on how much memory the service is allowed to use. Can you please suggest how to update the options to limit the memory usage to a certain value say 1 GB? Would this severely impact the read/write performance?

Do you have any documentation on how to configure Badger based on read/write loads?

Thanks

---

<div class="post-metadata">

**Author:** ![mrjn](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/mrjn/32/775_2.png) [@mrjn](https://discuss.dgraph.io/u/mrjn)\
**Post date:** [January 29, 2019, 10:56pm UTC](https://discuss.dgraph.io/t/limit-resource-usage-by-badger/3958/2 "2019-01-29T22:56:44Z")

</div>

This section is what you’re looking for: [GitHub - dgraph-io/badger: Fast key-value DB in Go.](https://github.com/dgraph-io/badger#memory-usage)
