Hass creates and deletes home-assistant_v2.db-shm and home-assistant_v2.db-wal every second

Interval is kinda random but is around 1 sec. Is it supposed to do that? If this behavior is fine can I relocate those files somewhere else? It gets really annoying when my config dir is open in editor and the file tree keeps flickering

I’m pretty sure that’s normal, and I doubt you can cause them to be created elsewhere. I believe they are temporary files created during database maintenance of some sort. (This is just base on observation.)

Those are temporary (write-ahead) files used by sqlite before committing changes to the database.

Point the SQLITE file to be elsewhere outside your config folder.

I use /tmp

How to do that?

1 Like

@monotonus
@poma

Did you figure out how to do this? Very annoying using VSC! I read the documentation but there wasn’t a way to move it for Hassio users.

Open settings in vscode and search for file:exclude

then add **.db-wal and **.db-shm

Worked for me