• ☆ Yσɠƚԋσʂ ☆@lemmy.mlOP
    link
    fedilink
    arrow-up
    4
    ·
    4 days ago

    Yeah, it’s amazing how good SQLite is nowadays. I find I use it for a lot of local apps I make for myself cause it’s just good enough.

    • Dessalines@lemmy.ml
      link
      fedilink
      arrow-up
      2
      ·
      4 days ago

      SQLite is pretty incredible. I think it currently has even faster read performance than postgres.

      The only reason to not use it, is if you have a write-heavy DB, or you need some of postgres’s extra features.

      • kim (she/her)@lemmy.ml
        link
        fedilink
        arrow-up
        2
        ·
        edit-2
        4 days ago

        we have more performance issues developing gotosocial with postgres than with sqlite. if we supported multinode deployments or horizontal scaling such that sqlite’s concurrency got harder to reason-about I’m sure postgres would shine, but for a single process sqlite has been generally much faster and it hasn’t required anywhere near as much prompting to get the query planner to behave as required.

        i also think when people assume sqlite is better for simpler applications, they think smaller. but no, for the same 25+GB databases sqlite has mopped the floor with performance.

        single-process multi-threaded sqlite is fantastic.