Giter Site home page Giter Site logo

Comments (6)

mnaiman avatar mnaiman commented on June 4, 2024

BTW: restart of container (app) does the same job with truncating WAL, but I dont want to restart regularly security solution.

from frigate.

NickM-27 avatar NickM-27 commented on June 4, 2024

It should be handled automatically https://www.sqlite.org/compile.html#default_wal_autocheckpoint

from frigate.

mnaiman avatar mnaiman commented on June 4, 2024

Maybe it should be handled, but it is obviously not handled :)
5 hours ago I truncated my WAL from 14GB to 0, now it is back 0,5GB.
I have 12 cameras with continuous recording, this is why its generate to db those 3mil records.

from frigate.

NickM-27 avatar NickM-27 commented on June 4, 2024

Will have to check what the default peewee config is

from frigate.

mnaiman avatar mnaiman commented on June 4, 2024

After reading docs - maybe data is moved from wal to db file, but wal itself is not truncated.
https://www.sqlite.org/c3ref/wal_checkpoint_v2.html
Yes questions is what is default checkpoint action.

from frigate.

NickM-27 avatar NickM-27 commented on June 4, 2024

The WAL isn't truncated but it is instead written over so it still shouldn't increase in size past a few MB. Based on section 6 it seems that the issue here is that Frigate has many concurrent readers and writers thus the auto checkpoint will not be run in certain circumstances (like users with many cameras)

from frigate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.