Can SQLite be Used in Real Projects?

Поделиться
HTML-код
  • Опубликовано: 28 сен 2024

Комментарии • 40

  • @clearove4699
    @clearove4699 5 месяцев назад +2

    bro is quickly turning into my favorite software youtuber, man i just love your content keep going.

  • @lifeofdandotme
    @lifeofdandotme 5 месяцев назад +15

    Great video! Good to see you choosing the right tool for the job and great job explaining the underlying tech (sqlite) instead of just making this a Turso video. It is good for everyone to understand what underpins their cloud solutions. You are right about sqlite performance as well. Sqlite can be very performant, especially in WAL mode. If you are using Turso, you could potentially spin up a separate sqlite db/file for each user. This has added benefit of both performance and the ability to truly delete a person's data from your service if they request it without having to do some kind of crazy query to find and remove the data from a single db. Ty for the video. :)

    • @lifeofdandotme
      @lifeofdandotme 5 месяцев назад +2

      Also, at 3min in you made me feel so old lol. "This is the way a lot of OLD APPs work" :P

    • @bmdavis419
      @bmdavis419  5 месяцев назад

      Yea per user DB is a crazy feature I definitely should have mentioned!

  • @DenserNiebanalny
    @DenserNiebanalny 5 месяцев назад +1

    Lemme ask, using Bun and still processing env traditionally? Whiy is that?

    • @bmdavis419
      @bmdavis419  5 месяцев назад +1

      Because I'm dumb, good call lol I did not know it could do that

  • @JoeyJurjens
    @JoeyJurjens 5 месяцев назад

    I think sqlite is great, but for a development/staging environment. I wouldn't use it in production. I'll stick with postgres for that, which is installed on my vps and not some service I have to pay for.

    • @scott_itall8638
      @scott_itall8638 5 месяцев назад

      What is your current setup?
      VPS > Docker > Postgres?

  • @scott_itall8638
    @scott_itall8638 5 месяцев назад +5

    Pocketbase?

    • @MadeInJack
      @MadeInJack 5 месяцев назад +2

      Interested in the comparison as well

    • @bmdavis419
      @bmdavis419  5 месяцев назад

      The big thing pocketbase gives is a client SDK, which I personally don't need or want. I really like having a server

  • @jaayzero724
    @jaayzero724 5 месяцев назад

    What are your thoughts on Solidjs as a framework?

  • @neoplumes
    @neoplumes 5 месяцев назад +1

    I just use a persistent volume + file system

  • @FalconTheFries
    @FalconTheFries 5 месяцев назад

    Any reason why you switched from clerk / turso to supabase in your weights-ai app?

    • @bmdavis419
      @bmdavis419  5 месяцев назад

      honestly I just wanted to try more stuff lol, I like both

    • @FalconTheFries
      @FalconTheFries 5 месяцев назад

      @@bmdavis419 cool, thanks for responding

  • @tobyCornish
    @tobyCornish 5 месяцев назад

    This will be the solution... until the next solution

  • @PTBKoo
    @PTBKoo 5 месяцев назад +2

    Cloudflare d1 > turso

    • @HoussamElbadissi
      @HoussamElbadissi 5 месяцев назад

      Really? I use Cloudflare Pages (and love them), but never considered their "database" solutions, thinking they were just for caching or smth like that.
      Is D1 any good as a primary database for an app? And is it easy to move out to something else if needed (is it just SQL or proprietary?)

    • @bmdavis419
      @bmdavis419  5 месяцев назад +5

      It looks promising, but I really like libsql and how open source the turso stuff is, and its not really baked into anything like cloudflare seems to be

    • @coffeeintocode
      @coffeeintocode 5 месяцев назад

      Still can’t be used outside of workers can it?

  • @tekoh
    @tekoh 5 месяцев назад +2

    Turso seems to have an insane free tier compared to the other ‘big’ db hosts

    • @bmdavis419
      @bmdavis419  5 месяцев назад

      yea its absurd, almost made me nervous but if you look at their infra it actually makes sense

    • @FabuBrik
      @FabuBrik 5 месяцев назад +1

      for now...

  • @choanlpoto
    @choanlpoto 5 месяцев назад +1

    I host all my db with a usb key and a raspberry pi. No free tier, no update on paying plan and I own my data.

  • @LorenzSascha
    @LorenzSascha 5 месяцев назад

    What are your thoughts on the write performance of SQLite? We have used SQLite in the past in many projects and the read performance is amazing fast but the biggest roadblock was for us the write performance. Unfortunately, the implementation of b*-trees can play against you.

  • @paulclarke4099
    @paulclarke4099 5 месяцев назад

    So does this allow concurrent writes by different users of is it just basically single user update with multiple concurrent readers? So you would still have to use MySQL or PostgreSQL if you want to have concurrent writes by different users, is that correct?

  • @cotyhamilton
    @cotyhamilton 5 месяцев назад

    SQLite always wins