# Badger cache: are we ready?

**URL:** <https://forum.storj.io/t/badger-cache-are-we-ready/27323>\
**Category:** Node Operators\
**Tags:** badger\
**Created:** [July 28, 2024, 9:41am UTC](https://forum.storj.io/t/badger-cache-are-we-ready/27323 "2024-07-28T09:41:48Z")\
**Posts on this page:** 1\
**Showing post:** 164

<div class="post-metadata">

**Author:** ![snorkel](https://storj.bcdn.literatehosting.com/letter_avatar/snorkel/32/5_5575768a8748004e209b776fc1b2916d.png) [@snorkel](https://forum.storj.io/u/snorkel)\
**Post date:** [January 20, 2025, 12:42pm UTC](https://forum.storj.io/t/badger-cache-are-we-ready/27323/164 "2025-01-20T12:42:42Z")

</div>

If you have low RAM and the file walkers struggle aka they take to much time to finish, like hours…  
It also helps to win more races… in theory.

[https://forum.storj.io/t/badger-cache-filewalker-test-results/27334?u=snorkel](https://forum.storj.io/t/badger-cache-filewalker-test-results/27334)  
There is also the official post, but I can’t find it.  
To enable it:

```auto
	--pieces.enable-lazy-filewalker=false \
	--storage2.piece-scan-on-startup=true \
	--pieces.file-stat-cache=badger

```

There is also a post about moving the badger cache dir to SSD, if you want.  
I run all the storagenode files on the same HDD as the storage on 8GB RAM with 2 nodes, and I don’t have any problems (data, databases, badger cache).  
But you need UPS, because a sudden power loss can corrupt the badger cache and you must manualy delete the directory, restart the node and run the startup filewalker as there was no cache (time wise), to rebuild the cache.

---

_[View the full topic](https://forum.storj.io/t/badger-cache-are-we-ready/27323)._
