Choosing Database for UNITY? Firebase Realtime Database vs Firestore

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey everyone in this video we'll be looking into the key differences between firebase real-time database and firestore and which database would be suitable for your use case so let's get started with the differences first is the data structure the real-time database stores data as a huge json tree which means that the data can be in any order or structure as long as it's a key value pair on the other hand firestore stores data as a collection of documents if you worked with nosql databases like mongodb you would have a pretty good idea about the concept of collections and documents it is a bit more structured in the sense that a document contains fields that can be mapped to values and a collection contains different documents so if your project has a basic database structure and can easily be represented by a single json you can go with either of the options but firestore becomes advantageous when the data structure is complex and there's a lot of hierarchical data next is offline support and presence real time database has offline support for mobile clients but the firestore has offline support for mobile and web client coming to presents to know whether a client is offline or online only real-time database records the client connection status whereas for firestore you need to implement it on your own using firebase cloud functions next is querying of data there are a few differences in querying of data between both the databases but in short if you would need to execute complex queries like chaining different filters and sorting then firestore has a much better support for it in terms of overall scalability with real-time database over a certain limit you need to implement sharding to scale while with firestore it scales automatically so firestore is a better option if you plan to have tremendous amounts of data over multiple regions so overall you might have a good idea now about which database to use in case you're still having trouble deciding or you think you have a complex use case you can use both the databases with the same firebase app both nosql databases can store the same types of data and the client libraries work in a similar manner i hope you found this video helpful please like this video and do let us know your thoughts in the comments below and if you're interested in such videos do subscribe to our channel
Info
Channel: Vikings Devlogs
Views: 6,074
Rating: undefined out of 5
Keywords: vikings, vikings devlogs, devlogs, firebase, database, which to choose, firebase realitme database, firebase rtdb, firestore, firebase database, difference, which is better, realtime, firestore and realtime database, best database for unity, database for unity project, how to choose a database, unity database tutorial, unity tutorial, firebase tutorial, unity beginner tutorial, unity project, database for game, game development
Id: TLyPyt5zDxc
Channel Id: undefined
Length: 2min 32sec (152 seconds)
Published: Sat Sep 18 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.