What is a NoSQL Database? How is Cloud Firestore structured? | Get to know Cloud Firestore #1

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ต.ค. 2024
  • Cloud Firestore is a horizontally scaling document-model NoSQL database in the cloud. But what does that actually mean? Welcome to our new series, Get to Know Cloud Firestore! In the first episode, Todd answers some of your essential NoSQL and Cloud Firestore questions. Let us know what you think in the comments below!
    More episodes on Cloud Firestore → goo.gle/Cloud-...
    Subscribe to the Firebase channel → goo.gle/Firebase

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

  • @Firebase
    @Firebase  6 ปีที่แล้ว +142

    Let us know what you'd like to see covered in this series in the comments!

    • @uziao
      @uziao 6 ปีที่แล้ว +5

      Please help us with SQL Databases to migrate to NoSQL! :)
      Greeting from Brasil
      (Ormando - Colatina/ES)

    • @TheGrafox
      @TheGrafox 6 ปีที่แล้ว +8

      Best structure database for real world project like shopping products or post.

    • @SreekanthKrishnan
      @SreekanthKrishnan 6 ปีที่แล้ว +12

      1. Structure for feeds in social media app
      2. Advanced querying with multiple fields
      3. Possible issues if your app gets 1 Million downloads in a day :P (Best practices to make sure things don't break on scaling up)
      4. How to maintain consistency of duplicated data
      5. How to deal with aggregation queries when device is offline. For example user clicked like button. Like count needs to be incremented but transactions won't succeed or cloud functions won't execute as device is offline.
      6. Complete real world examples for social media, shopping, messaging etc.

    • @PrayudiSatriyo
      @PrayudiSatriyo 6 ปีที่แล้ว +4

      #AskFirebase How do we backup and restore databases so we can have PROD and DEV environment? In SQL, we can simply perform backup and then restore it using a different name.
      My startup is based in Indonesia, currently building a new Android app using Firestore as the backend.
      We need to have PROD and DEV environment. DEV is for Internal Test, Alpha, and Beta.

    • @AshishYadav-eh8bl
      @AshishYadav-eh8bl 6 ปีที่แล้ว +1

      Topics like data optimization and writing queries.

  • @codinginflow
    @codinginflow 6 ปีที่แล้ว +230

    Your explainer videos are amazing

  • @vigneshr5329
    @vigneshr5329 5 ปีที่แล้ว +123

    Todd is definitely one of the best presenters. Would love to see more from him.

  • @bushbuddyplatypus
    @bushbuddyplatypus ปีที่แล้ว +26

    Instant fan here. This is so understandable and engaging. Much better than any other tutorials I've seen in a long while.

  • @chanlito4896
    @chanlito4896 6 ปีที่แล้ว +323

    A BIG thumb up 😅 for this video.

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

      ​@@ToddKerpelmanCorp you remind me an actor Robin Williams. Thank you! 👍

    • @enriqueeee
      @enriqueeee 5 ปีที่แล้ว +7

      I was looking for a comment about his thumb, thanks !

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

      Came down here to leave the same comment ;-)

  • @ne2r
    @ne2r 5 ปีที่แล้ว +34

    I should have watched this video before developing my app with Firestore. Everything makes so much sense now.

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

    After watching this, I immideately feel like I understand what the core idea of firestore is and the difference compared to a SQL database. Totally awesome

  • @epajarjestys9981
    @epajarjestys9981 6 ปีที่แล้ว +19

    This is an awesome introduction. Excellently clear and to the point explanations of the basic concepts with all the important context.
    This guy has got great talent as a teacher.

  • @jesselima_dev
    @jesselima_dev 6 ปีที่แล้ว +70

    This is one of the best videos you guys posted about Firestore. Really good one! I like this guy explaining.

  • @gothakane
    @gothakane 6 ปีที่แล้ว +58

    You actually addressed everything I was thinking as someone coming from a relational DB background. Impressive! Like you were reading my mind. Still not entirely convinced but trying it out.

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

      Was it worth the trial ?

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

    the guy is briliant
    himself!
    kept me hiper concentrated for the whole video. awesome

  • @waleedalrashed1411
    @waleedalrashed1411 5 ปีที่แล้ว +8

    Why is this video the absolute perfection?

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

    Really well explained! I kept thinking to myself questions as you went, like "How can I fetch related items without joins?" and "Won't that result in duplicate data that can be out of sync?" and each time within less than a minute you brought up the same question and gave great answers :)

  • @OnionKnight541
    @OnionKnight541 5 ปีที่แล้ว +55

    "In the Realtime Database world, when you retrieve some element in the tree, you automatically retrieve everything below it. And that would mean downloading potential hundreds of [elements] anytime I want to grab a couple dozen [elements]... But in Cloud Firestore world, queries are shallow by default." (This is a big point that a lot of beginner Firebase programmers should keep in mind).

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

      But if you actually need a lot of data and everything below it, you need to create a lot of queries because Firestore is shallow by default and that's a big deal. It all depends on the way you're modeling. You can use indexes to help in this process of querying and some techniques in Realtime Database too, as well you can do that in Firestore. NoSQL is a fun world to explore! (:

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

      @@brianoliveira5471 Oh my, I'm getting a heart attack just thinking about it. 😬 Why would anyone want to use it?! Can someone explain, please?

    • @huntergroton
      @huntergroton 5 หลายเดือนก่อน

      @@klaudiaadamus3353 are you asking why anyone would want to use shallow queries?

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

    As a developer with a long history of using SQL databases, this is the exact information I was looking for!

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

    I remember the time when I am new to no sql database. So confusing. But now, I am enjoying and have understand this no sql database.
    Now, I am using cloud firestore db in every app I am working for school. It made my work easier and faster. Thank you, firebase team! Especially to Todd, big thumbs up for you! 👍

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

    Completely lost when I first encountered the reference of “Collection” and “documents”, making the specific relationship was hard, but now I can see all of the benefits in doing it this way, thanks for the video, it is a recommendation sorely lacking from guides.

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

      We appreciate your support, Juan! Thank you so much for leaving this feedback for us 😄

  • @CodeLove-v6r
    @CodeLove-v6r 8 หลายเดือนก่อน +33

    Anyone in 2024...🤚

    • @yaminshaikh
      @yaminshaikh 3 หลายเดือนก่อน +1

      Yes

    • @felixjegere
      @felixjegere หลายเดือนก่อน

      Looking for me

  • @pablokatt
    @pablokatt 6 ปีที่แล้ว

    Oh man! If all videos in the internet would be explained like this humanity would get the next level his evolution! Thank you so much!

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

    Great explanation!
    Possibly the first video I've ever seen where the presenter's "You're probably thinking _____, right?" interjections were in fact precisely what I was thinking.

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

      Thanks for the love! We're so happy you found this helpful!
      Be sure to subscribe to keep up with the latest from Firebase:
      goo.gle/3dyeCpY
      Happy learning 😎

  • @Juan-lb5wu
    @Juan-lb5wu 5 ปีที่แล้ว +1

    It's a luxury to have this video series. Thanks for your work .

  • @CoryMcaboy
    @CoryMcaboy 6 ปีที่แล้ว +13

    I have been using Firestore for my app. I would recommend fixing the following deficiencies prior to coming out of BETA:
    1) Ability to use the not equal operator "!="
    2) Support for OR logic in where clause
    3) Offline support for Web.
    4) Support for Android in React Native (Android does not currently work with React Native without unsupported workarounds).
    As of the current state, I would only recommend Firestore for very simple MVP's and concept testing purposes. I would not recommend it for a production application (hence why it is in BETA ^^)

    • @topolichio
      @topolichio 6 ปีที่แล้ว

      I understood that with RNFirebase you could use firestore on android, it's not possible?

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

      Dude this is a complete video explaining why there is no such a thing a SQL query and still, you ask for "Ability to join...", seriously?

    • @ValAllenSamonte
      @ValAllenSamonte 6 ปีที่แล้ว

      Offline support for web is there by calling enablePersistence? Am I missing something here? firebase.google.com/docs/firestore/manage-data/enable-offline

    • @CoryMcaboy
      @CoryMcaboy 6 ปีที่แล้ว

      Aquilino Méndez you are fine if you use that library. I should have specified that I am using expo, which does not support that library.

    • @CoryMcaboy
      @CoryMcaboy 6 ปีที่แล้ว

      cutiko thanks fam

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

    10:56 Firestore rules
    Firestore rules:
    10:59 first rule: collections can only contains documents nothing else
    11:04 second rule: documents can only be 1 MB less inside
    11:09 third rule: document can not contain another document
    11:15 a document can contain collections of documents, and each documents a collection of documents, and so on
    11:23 fourth rule: root can only contains collections
    11:47 query

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

    "Worst thing to happen in programming, since GOTO statement" I am going to borrow this line.
    Awesome Tutorial !!

  • @Glenn.Cooper
    @Glenn.Cooper 2 ปีที่แล้ว +1

    That's the best intro description I've heard to describe a NoSQL database. Thanks!!

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

      Glad you like it!

  •  ปีที่แล้ว

    Todd, I love the way you talk, your jokes.
    I wish you made every tutorial

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

    You are really a genius, this is one of the best videos I discovered about Cloud Firestore.

  • @michelkant
    @michelkant 4 ปีที่แล้ว +13

    awesome explanation!! "Why optimize for the thing that happens 1 time instead of the thing that happens 7000 times" -> That's makes a lot of sense :D

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

    My education is in relational databases but the fact the Google hosts and scales the database for you has me hooked

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

    This guy makes the best videos for real. He should make all the videos for flutter/firebase.

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

      Thanks for the love, Chris! Glad you enjoyed the video 😎
      Be sure to check out the links in the description for even more great content!

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

    i was confused in firestore but your video helped in understanding it .enjoyed a lot.

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

      We're glad to hear the tutorial was helpful! Be sure to check out the links in the description for more tips and tutorials 😎

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

    What a talent for presenting information. I could listen to this gentleman all day. Great job. Looking forward to running video #2.

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

    Dude, what a great video. Very easy to follow. Great explanations. Just the right amount of humor. Thank you! :)

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

    Describing complex things in a simple way. Thanks!

  • @permanar_
    @permanar_ 5 ปีที่แล้ว +50

    "Since Go-To Statement" LOL IM DED😂😂😂😪😪

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

    The drawings and the clear and step by step explanations with examples are making it a great video along with that great sense of humor. Thank you so much :)

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

    this is the best series since bread came sliced

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

      Glad you enjoyed!

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

    This video is so easy to understand and giving examples at the right time when I started to get confused! thumbs up for you

  • @orange-vlcybpd2
    @orange-vlcybpd2 2 ปีที่แล้ว +1

    That was the missing link for me. Didactically outstanding Explanation, and Presentation. Thank you, Todd

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

    I'm new to NoSQL and was confused as first, thanks for your detailed and easy to follow explanation!

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

    There's no sequel for that thumbnail.
    You described the topic very well, thank you.

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

      Thanks for that!

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

    This guy is crazy good at explaining, Well done.

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

    Hope the thumb is better (and that it did not take 4 years to heal).
    GREAT video. Thanks!

  • @thiashomme
    @thiashomme 3 หลายเดือนก่อน

    Incredible explanation, that's some proper communication skills right here! Thanks a lot!

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

    This is my introduction to NoSQL and the collections make sense now to me

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

    Perfect explanation. Humankind requires more of such.

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

    Looking forward to this amazing series.

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

    I'm just learning about Firestone for the first time. You did a phenomenal job of explaining things here! :D

  • @youssefouirini5597
    @youssefouirini5597 5 ปีที่แล้ว

    Best noSQL education short I've ever seen.

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

    Wow! I would like to say that anyone or any company who make some kind of tutorials video should take a good look at this video for how it should be done! Amazing clarity. Thank you.

  • @yurowitz
    @yurowitz 3 หลายเดือนก่อน

    I've watched dozens of videos about NoSQL and SQL databases but none of them really painted the real picture. This video is literally the best out there! Now I am excited to follow up on the remainder of the series. Thanks so much !

  • @courageous-schools
    @courageous-schools 6 ปีที่แล้ว +5

    This is a fantastic video. Very well explained and the pace is spot on. Are there any other episodes in this series. If so, how do I find them?

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

    How exciting! Looking forward to this!

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

    Wow I was expecting you to cover briefly on NoSQL before moving on to Firestore
    But you also cover the essence of SQL
    I find it very insightful and would highly recommend all starting out as backend to view it.

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

    This is the best explanation of why to migrate to Firebase: is a great serverless! No pain for developers, fast queries and scaling is not an issue

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

    Finally a great explanation from Google!👍

  • @basiccoder2166
    @basiccoder2166 4 หลายเดือนก่อน +1

    whoa did any one notice on PC at 15:11 when author says subscribe to our TH-cam channel the subscribe button have a animation effects outside the video this is super cool!!!

  • @lemuffinity
    @lemuffinity 6 ปีที่แล้ว

    That's solid! You managed to explain to a database newbie what a NoSQL database is. Thanks!

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

    I've been playing around with noSQL db a bit lately but this was actually a very helpful explanation of how to model the data and how it differs to relational.

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

    Good job making a dry topic actually fun to watch!

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

    This is an awesome introduction, no doubt about it. But I expected few examples running on firebase/firestore to understand how it's really done.

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

    best teacher on youtube

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

    Thanks for this videos,, just what i was needing in this moment of my life.

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

      You're so welcome!

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

    i studied sql databases for and year and this is more clear. Thanks.

  • @Falzer
    @Falzer 5 หลายเดือนก่อน

    You got my reaction 😂, i really freaked out and you said every worries i have! thanks for creating this video, I learned a lot

  • @FilledStacks
    @FilledStacks 5 ปีที่แล้ว

    Awesome video Jeff. My first time actually learning about NoSQL after just hearing about it for so long. You've made it look very easy :)

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

    Thank you guys! This was really nice.

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

      Glad you enjoyed it!

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

    Great intro. I'll now watch your other videos. Thanks heaps !

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

    thith guy gets it. thith was dope. appreciate it thankyuhthomuch all yallth

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

    One of the best tutorials I have ever seen!!!

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

    oookay .. thats some top notch explaining right there , keep it

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

    Hi, it's really a very good video ... the contents and the animations you used ... If you allow, I would likw to ask you what tool di you use to make such animations, tables, arows ... Thanks

  • @ellasaro
    @ellasaro 6 ปีที่แล้ว

    Does this mean you would have a "Reviews" collection for every "Restaurants" document? So excited about upcoming videos.

    • @ellasaro
      @ellasaro 6 ปีที่แล้ว

      Fantastic

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

    Thank you for this video series!!

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

      You are so welcome!

  • @LinhLinhBD
    @LinhLinhBD 5 ปีที่แล้ว

    the best explaination about nosql

  • @Kurchack
    @Kurchack 6 ปีที่แล้ว

    Great video. I recently had to do some data duplication in order to accommodate certain user needs. This felt really dirty, but it's relieving hearing you talk about this like it's okay to do here and there.

    • @rammalvarez2664
      @rammalvarez2664 6 ปีที่แล้ว

      Happened to to my as well this couple days, have you tried to keep reference to your Id's in an opcional value of your model? It works for me when I retrieve the documents so you don need to duplicate data

  • @konnekmed2010
    @konnekmed2010 6 ปีที่แล้ว

    Brilliant stuff. Got the sample IOS apps working with read and writes to my console and figured out the data model required for the build. Time to build the rest of the structure.

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

    The world needs a new type of database.

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

    This is great video!
    I cannot wait for "Future episodes"!!

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

    wow!!! just wow!! excellent pace and extremely well presented!!

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

    Fantastic presenter! Great video thanks

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

      Glad you enjoyed it!

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

    This is the best guy described it so well and fun, thanks a million :)

  • @katlegomolepo6830
    @katlegomolepo6830 6 ปีที่แล้ว +14

    Alert alert dont watch this video this guy will convert you, he's that good🤓, keep it up bro this is great.

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

    I hope this guy is getting paid a lot cause his videos are fire

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

    Thanks for the good instruction video its easier to understand than documentation reading alone.

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

    Todd is a fantastic presenter / speaker

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

    Awesome explanation. Would give a big thumbs up...but I see, you already have one.

  • @vendetta3953
    @vendetta3953 6 ปีที่แล้ว

    hahahaha 7:03 that's what I'm currently feeling 🤣 having only SQL background this nosql thing is driving me crazy.
    Please keep bringing more videos on firestore. A separate playlist would be best :)

  • @rammalvarez2664
    @rammalvarez2664 6 ปีที่แล้ว

    Nice! I'm devoloping my firsts apps with Firestore.... and boy! I love it, so simple. Great job guys! and keep the videos coming

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

    Haha I love the creativity in these videos.

  • @masa-vg5dv
    @masa-vg5dv 3 ปีที่แล้ว

    super easy to understand. thanks a lot!!

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

    Thanks so much. I'm switching over from SQL to Firestore. Wish I would've learned this first 😭

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

    Informative video. VERY NICE!

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

      Glad you liked it!

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

    Love the speaker - he is awesome!

  • @kwstasg
    @kwstasg 6 ปีที่แล้ว

    Both Cloud Firestore and Mr Todd are belovable

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

    #askfirebase Thank you for this great series, I have a model like the following:
    Collection: Place
    String name
    String description
    Int numberOfVisits
    and so on
    Q1: for the first two parameters ‘ *name and description* ’ I need to make it *multilingual* what is the best structure to make it so while keeping minimal data downloaded and the minimal number of queries?
    Q2: you're talking about having a sub-collection for reviews, but what about having a third collection for the relation between users-resturants-reviews ?
    Best,
    Yusuf

  • @marians.9010
    @marians.9010 4 ปีที่แล้ว

    wow, now THAT's a high quality explanatory video!

  • @wingyichau116
    @wingyichau116 5 ปีที่แล้ว

    Excellent illustration on what noSQL is. Thanks so much :)

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

    Just fantastic.

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

    What an awesome explanation, thanks!