The Unix Way, everybody!

Also, first post!

@linuxmemes

  • renzev@lemmy.world
    link
    fedilink
    English
    arrow-up
    5
    ·
    9 hours ago

    Just fucking putting data into json files in a folder is so much easier than databases. Sure, databases are faster and give you access to powerful SQL queries. But if you’re just making something small and simple, you don’t need those things. Save yourself the hassle and just use the filesystem.

    Or use minio/s3, which can either be the best or the worst of both worlds depending on your usecase.

    • twice_hatch@midwest.social
      link
      fedilink
      English
      arrow-up
      5
      ·
      6 hours ago

      The trouble is, filesystems don’t have ACID. The first time you have a power loss during a write, your data will get corrupted.

    • a2part2@lemmy.zip
      link
      fedilink
      arrow-up
      3
      ·
      6 hours ago

      Duckdb can query them with SQL like they are in a database. Csv, tsv, parquet also. You can even connect to and query postures and cloud storage also

    • FooBarrington@lemmy.world
      link
      fedilink
      arrow-up
      7
      ·
      8 hours ago

      It also makes you re-implement a database, but worse.

      Use a JSON file if you just need to serialize/deserialize some data. Use SQLite or a DB server if you need more. Your own code will never match the quality of SQLite.