What's the best local database for React Native? Well, it depends...

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ต.ค. 2024

ความคิดเห็น • 66

  • @vibhorpahare6640
    @vibhorpahare6640 3 ปีที่แล้ว +21

    you gave me a feeling that I am listening to 'gilfoyle' from Silicon Valley :D , btw nice video, helps me a lot

    • @yim
      @yim  3 ปีที่แล้ว +3

      I've actually never seen that show, I need to watch it!

    • @vibhorpahare6640
      @vibhorpahare6640 3 ปีที่แล้ว

      @@yim what it you'll love it

    • @frankfu1122
      @frankfu1122 3 ปีที่แล้ว

      Thanks for the laugh ;)

  • @nirajkhatiwada6696
    @nirajkhatiwada6696 2 ปีที่แล้ว +2

    Apollo Cache Persistence is great if you just want to cache your GraphQL API's without any manual work. If you want to do it manually, WatermelonDB is a best choice for RN I think. Realm does not focuses much for RN.

    • @abdulraufal-hassan5033
      @abdulraufal-hassan5033 ปีที่แล้ว

      expo sqlite is also great, you get to use sql to query the data

  • @matheusjorge5277
    @matheusjorge5277 3 ปีที่แล้ว +3

    About RealmDB my personal experience: Well, i'm started a app with realm and 2 months later stoped working because of the Hermes integration so much things are deprecated, so i lost my database code completely... Its fast on device when i used, but honestly the issues with react-native doesn't pay. You will expend more time trying to make the app open because any update of realm,RN or Gradle than making the code and upgrading your app.

    • @yim
      @yim  3 ปีที่แล้ว +1

      I know how you feel. I switched to watermelon and it's light years better than Realm.

  • @vegalan9388
    @vegalan9388 3 ปีที่แล้ว +2

    What's the difference between a local database and other databases like mysql , sql server ....etc ?

    • @yim
      @yim  3 ปีที่แล้ว +2

      a local database lives and runs directly on the device.

  • @TomAtPixel
    @TomAtPixel ปีที่แล้ว +1

    Your videos are amazing! Have you looked at Realm again any-time recently? It seems they have addressed the issues you mentioned (Hermes support and fully integrated React-like queries). What would you recommend for an offline-first app that lets users create/edit/delete shared data with

    • @yim
      @yim  ปีที่แล้ว

      I haven't used Realm in a while only because I've become so comfortable with WatermelondDB. Sounds like it's much better now. I'm with you, I think Realm/WatermelonDB on device and Supabase for backend is a nice combo. It takes some time to get up to speed with using both platforms (and syncing data between them) but once it's set up it's pretty smooth sailing and I've yet to run into any issues with device cloud device using WatermelonDB and Supabase.

  • @coolsai
    @coolsai 2 ปีที่แล้ว +1

    which is best app for notes and task app? i am thinking to go with redux

  • @mitexz
    @mitexz 4 ปีที่แล้ว +2

    o please tell everyone that nobody else tell ...is that the firebase is not totally free

    • @yim
      @yim  4 ปีที่แล้ว +1

      Yeah definitely not free! And you never know when Google will raise their prices too!

  • @Athul14311
    @Athul14311 2 ปีที่แล้ว +1

    Great content 👍
    Do you think redux + redux-persist would be enough for something like a fitness app with offline capabilities which stores 15 health parameters for let’s say 1-2 months

    • @yim
      @yim  2 ปีที่แล้ว

      As long as you are not syncing to a server that would work fine. If you are syncing to a server make your life easier and use watermelondb.

  • @davehague
    @davehague ปีที่แล้ว +1

    Wonderful video, thank you so much for discussing the tradeoffs of each (and thanks for not making it the video an hour long!)

    • @yim
      @yim  ปีที่แล้ว

      Glad you enjoyed it!

  • @mashoodali679
    @mashoodali679 3 ปีที่แล้ว +2

    Your opinions clear my confusion about the Local database. Thank you for sharing your valuable experience.

    • @yim
      @yim  3 ปีที่แล้ว +1

      Glad it helped

  • @HenryOsim
    @HenryOsim 3 ปีที่แล้ว +2

    you did not sound impressed with realm for react native, so if you had to choose between realm and sqlite as local storage db for a task tracker react native app that connects to a custom php backend(for auth and other querying), which will you use?

    • @yim
      @yim  3 ปีที่แล้ว +3

      I would choose watermelondb. You get all the benefits of a sqlite db and it's fully observable so whenever a record changes every piece of UI that uses that record automatically re-renders.

    • @HenryOsim
      @HenryOsim 3 ปีที่แล้ว +7

      @@yim please can you do a tutorial in installing/configuring watermelondb to work with react native (ios/android)? the docs a little confusing and there seem to be unresolved CocoaPods Support issues

  • @israelayokunnu7974
    @israelayokunnu7974 3 ปีที่แล้ว +1

    Gilfoyle....

  • @codescooper3068
    @codescooper3068 2 ปีที่แล้ว

    Just to be sure , i have a hotel finder that i want to build , and at the end want a desktop app, a mobile app and a website that can comunicate together , can i have your advices ?

  • @arbaaz360
    @arbaaz360 3 ปีที่แล้ว +1

    thanks man

  • @GadgetsTrend
    @GadgetsTrend 3 ปีที่แล้ว

    Can we use MySQL with react native

  • @screwfeaar
    @screwfeaar ปีที่แล้ว

    Can use all these DBs regardless of expo or react native cli?

  • @maq3009
    @maq3009 ปีที่แล้ว

    I really hate the "it depends...." answer.

    • @yim
      @yim  11 หลายเดือนก่อน +1

      Me too, but “it depends” is the only truthful answer when it comes to getting a specific answer to a general question.

  • @timz5418
    @timz5418 3 ปีที่แล้ว +1

    Thanks for sharing experience!

  • @gowthamn5911
    @gowthamn5911 3 ปีที่แล้ว +2

    can u say which database is best or perfect for React native ?

    • @yim
      @yim  3 ปีที่แล้ว +2

      I don’t think there is a best or perfect. It depends on what you’re trying to build. All in all my favorite database is watermelon

    • @gowthamn5911
      @gowthamn5911 3 ปีที่แล้ว +1

      @@yim nice bro but react native + database like php + mySql !! Made for each other like that I ask ?

    • @yim
      @yim  3 ปีที่แล้ว +3

      @@gowthamn5911 Watermelondb is made for react native!

    • @gowthamn5911
      @gowthamn5911 3 ปีที่แล้ว +1

      @@yim thk u bro🖤

  • @bobkelso5681
    @bobkelso5681 ปีที่แล้ว

    You should try RxDB.

  • @lonewolfcoding5208
    @lonewolfcoding5208 2 ปีที่แล้ว

    what about security?
    can local database secure?

  • @herbertk9266
    @herbertk9266 4 ปีที่แล้ว +5

    Thanks could you make tutorial on watermelonDb

    • @yim
      @yim  4 ปีที่แล้ว +5

      I think I will. I just need to use it more to get a better understanding of it first.

    • @herbertk9266
      @herbertk9266 4 ปีที่แล้ว

      @@yim Thanks bro

    • @raweyrever1352
      @raweyrever1352 3 ปีที่แล้ว

      @@yim Have you made tutorial for watermelonDb. Can I use watermelonDb app like whatsapp?

    • @gregfrllo
      @gregfrllo 2 ปีที่แล้ว

      @@yim yes please, i find it kinda hard to understand the setup as a beginner

  • @jennyric
    @jennyric 3 ปีที่แล้ว

    I'm using redux with my app so I'm thinking about using redux persist. But I'm not sure yet. My app will have a lot of images that I want to store offline and also sync online. Is redux persist the best option?

    • @yim
      @yim  3 ปีที่แล้ว +3

      I'm far from an expert on image storage but I think you should store the images outside of redux

  • @yawningoutside4276
    @yawningoutside4276 3 ปีที่แล้ว

    Hi Jimmy, thanks a lot for the info. What if I need to locally store a video file that can be pretty large. Like 300MB+ So my app records a video and has to save it. It won't necessarily be retrieved into the app. Maybe I'm asking the wrong question. I'm not entirely sure if any local DB is needed at all but I'm new to RN so..

    • @yim
      @yim  3 ปีที่แล้ว +1

      Probably best to use @react-native-community/cameraroll and save the video to the user's photo/video library

  • @pratiik37
    @pratiik37 3 ปีที่แล้ว

    Make More videos on React Native

  • @softcaretech
    @softcaretech 2 ปีที่แล้ว

    Nice one

  • @eliyagervas8680
    @eliyagervas8680 ปีที่แล้ว

    Look like Jeff Bezos, thanks

    • @yim
      @yim  ปีที่แล้ว

      😂

  • @jacqueskorb879
    @jacqueskorb879 3 ปีที่แล้ว

    Tx

  • @anurupm8511
    @anurupm8511 2 ปีที่แล้ว

    I'm building an e-commerce app on react Native that would be used in my locality. Can you tell me which database would be best suited for me?

    • @yim
      @yim  2 ปีที่แล้ว

      There are lots of options you could choose. If it were me and I didn't have a backend built I would use firebase. If I did have a backend built I would use watermelondb.

    • @anurupm8511
      @anurupm8511 2 ปีที่แล้ว

      @@yim thanks a lot!

  • @davidwaite7769
    @davidwaite7769 ปีที่แล้ว

    fantastic video man, thanks heaps

    • @yim
      @yim  ปีที่แล้ว

      Glad it helped

  • @osamarizk
    @osamarizk ปีที่แล้ว

    What about SQLite DB ?

    • @yim
      @yim  ปีที่แล้ว

      I've never used SQLite directly (WatermelonDB uses SQLite though) but it's probably a decent option

  • @abdulraufal-hassan5033
    @abdulraufal-hassan5033 ปีที่แล้ว

    expo sqlite is also great, you get to use sql to query the data

    • @screwfeaar
      @screwfeaar ปีที่แล้ว

      can enable online sync with expo sqlite if needed later? What are other options with expo? Not able to configure watermelon db with expo. Looks like it's not supported yet.

  • @nidakhan_8
    @nidakhan_8 2 ปีที่แล้ว

    which db will be best for my react native chat app to store chats locally...for example rxdb or sqlite or something else...
    thanks in advance

    • @yim
      @yim  2 ปีที่แล้ว

      Any of those would work but I prefer watermelondb