Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

What is the data model for google cloud firestore?


Asked by Haylee Davis on Dec 04, 2021 Mini Program Cloud Development Study Guide



Data model. Cloud Firestore is a NoSQL, document-oriented database. Unlike a SQL database, there are no tables or rows. Instead, you store data in documents, which are organized into collections. Each document contains a set of key-value pairs. Cloud Firestore is optimized for storing large collections of small documents.
Keeping this in consideration,
Firestore helps to sync data across multiple client applications with the use of real-time listeners. It uses the Cloud Identity, and Access Management features from Google for the process of authentication. Firestore performs data storage in the form of documents, with the documents being stored in collections.
In addition, The Firestore Data Modeling Course provides a foundation for modeling data relationships in NoSQL, while optimizing queries for performance, cost, and complexity. Determining the the optimal data model in Cloud Firestore is not an easy task because you need to anticipate your app’s UI/UX requirements in advance.
Also Know,
Note: Firestore supports a variety of data types for values: boolean, number, string, geo point, binary blob, and timestamp. You can also use arrays or nested objects, called maps, to structure data within a document.
Moreover,
Collections and documents are created implicitly in Firestore. Simply assign data to a document within a collection. If either the collection or document does not exist, Firestore creates it. In Firestore, the unit of storage is the document.