2 comments

  • stanac25 minutes ago
    I am using SQLite as document db for a side project for years now. Made a custom repository base class that can also store blobs in separate columns, so this type of data is not part of the json document. Today there is also jsonb [1], as far as I remember all functions work the same for json and jsonb.<p>Also the repo class stores write and delete timestamps as separate columns so I can have CDC. CDC is used for building cached view models and is pushed to object storage every 5 minutes for backup as NDJSON. Another process on home server is restoring the db every couple of minutes for second backup and ready to use DB in case it&#x27;s needed.<p>I know there are things like Litestream, I wanted something in process and something that can send alerts on failed backups.<p>[1] <a href="https:&#x2F;&#x2F;sqlite.org&#x2F;jsonb.html" rel="nofollow">https:&#x2F;&#x2F;sqlite.org&#x2F;jsonb.html</a>
  • delduca12 minutes ago
    In my personal project (a game) I use an indexed key + a JSONB to store the save state, which comes from Lua.<p>So I can have cassette.propxyz = {1, 2, “abc”, true}<p>And<p>local anotherprop = cassette.leprop