{"id":4615,"date":"2020-04-11T14:32:01","date_gmt":"2020-04-11T14:32:01","guid":{"rendered":"https:\/\/www.testpreptraining.com\/tutorial\/?page_id=4615"},"modified":"2022-03-29T07:33:52","modified_gmt":"2022-03-29T07:33:52","slug":"nosql-model-google-professional-data-engineer-gcp","status":"publish","type":"page","link":"https:\/\/www.testpreptraining.ai\/tutorial\/nosql-model-google-professional-data-engineer-gcp\/","title":{"rendered":"NoSQL Model Google Professional Data Engineer GCP"},"content":{"rendered":"\n<p>In this, we will learn the concepts of NoSQL Model in GCP.<\/p>\n\n\n<h4><strong>NoSQL models<\/strong><\/h4>\n<ul>\n<li>Key Value Store &#8211; schema-less , key points to an specific item but lack of consistency<\/li>\n<li>Document Store &#8211; Similar to key value stores, documents store data in encoding (XML\/JSON)<\/li>\n<li>Column Store &#8211; Data stored in columns, comprised of multiple column families which logically group specific columns. A key identify and point to a number of columns, each column store in separate file and has tuples of names-values, ordered and comma-separated.<\/li>\n<li>Graph Base &#8211; It is a directed graph structure and consists of edges and nodes. represents pack of objects, connected by links.<\/li>\n<\/ul>\n<h4><strong>GCP document-oriented database:<\/strong><\/h4>\n<ul>\n<li>Firestore is a document-oriented database that runs on top of NoSQL.<\/li>\n<li>There are no tables or rows in this database, unlike a SQL database. Data is instead stored in documents that are arranged into collections. A collection of key-value pairs may be found in each document. Firestore is designed to hold enormous amounts of tiny documents.<\/li>\n<li>Collections must be used to hold all papers. Subcollections and nested objects, both of which can include simple fields like strings or complicated objects like lists, can be found in documents. In Firestore, collections and documents are formed implicitly.<\/li>\n<li>Simply said, data may be assigned to a document within a collection. Firestore builds the collection or document if it does not exist.<\/li>\n<\/ul>\n\n\n<h4 class=\"wp-block-heading\" id=\"documents\"><strong>Documents<\/strong><\/h4>\n\n\n\n<p>The document is the storage unit in Firestore. A document is a simple record with fields that correspond to values. A name assign to each document.<\/p>\n\n\n\n<p>The following is an example of a document describing a user alovelace:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>class\u00a0alovelace<code>first : \"Ada\"<\/code><br><code>last : \"Lovelace\"<\/code><br><code>born : 1815<\/code><\/li><\/ul>\n\n\n\n<p>Maps are hierarchical, complex items in a document. For example, you could use a map to organise the user&#8217;s name from the previous example:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>class&nbsp;alovelace<code>name :<\/code><br>&nbsp;&nbsp;&nbsp;&nbsp;<code>first : \"Ada\"<\/code><br>&nbsp;&nbsp;&nbsp;&nbsp;<code>last : \"Lovelace\"<\/code><br><code>born : 1815<\/code><\/li><\/ul>\n\n\n\n<p>You&#8217;ll note that the papers resemble JSON. They are, in reality, essentially the same. Although there are significant distinctions (for example, documents enable more data types and restrict to 1 MB in size), documents may treat as lightweight JSON records in general.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"collections\"><strong>Collections<\/strong><\/h4>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cloud.google.com\/firestore\/docs\/images\/structure-data.png\" alt=\"nosql model example\" width=\"350\" height=\"270\"\/><\/figure><\/div>\n\n\n\n<p>Documents are stored in collections, which are nothing more than storage containers for documents. You might, for example, have a users collection that contains all of your different users, each of whom represents by a document:<\/p>\n\n\n\n<p>collections_bookmark\u00a0users<\/p>\n\n\n\n<p>class\u00a0alovelace<code>first : \"Ada\"<\/code><br><code>last : \"Lovelace\"<\/code><br><code>born : 1815<\/code><\/p>\n\n\n\n<p>class\u00a0aturing<code>first : \"Alan\"<\/code><br><code>last : \"Turing\"<\/code><br><code>born : 1912<\/code><\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"hierarchical-data\"><strong>Hierarchical Data<\/strong><\/h4>\n\n\n\n<p>Consider a chat app with messages and chat groups to see how hierarchical data structures function in Firestore.<\/p>\n\n\n\n<p>You may save different chat rooms in a collection named rooms:<\/p>\n\n\n\n<p>collections_bookmark\u00a0rooms<\/p>\n\n\n\n<p>class\u00a0roomA<code>name : \"my chat room\"<\/code><\/p>\n\n\n\n<p>class\u00a0roomB<code>...<\/code><\/p>\n\n\n\n<p>Decide how you&#8217;ll save your messages now that you&#8217;ve had chat rooms. It&#8217;s possible that you won&#8217;t want to save them in the chat room&#8217;s document. Firestore documents should be light, and a chat room might have a big amount of messages. However, as subcollections, you may construct more collections within your chat room&#8217;s document.<\/p>\n\n\n\n<p><strong>Reference: <a href=\"https:\/\/cloud.google.com\/firestore\/docs\/data-model\" target=\"_blank\" rel=\"noreferrer noopener\">Check here<\/a><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this, we will learn the concepts of NoSQL Model in GCP. NoSQL models Key Value Store &#8211; schema-less , key points to an specific item but lack of consistency Document Store &#8211; Similar to key value stores, documents store data in encoding (XML\/JSON) Column Store &#8211; Data stored in columns, comprised of multiple column&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"categories":[617],"tags":[619,623,622,618,630,621,628],"class_list":["post-4615","page","type-page","status-publish","hentry","category-google-gcp","tag-data-engineer","tag-gcp","tag-google-certification","tag-google-cloud","tag-nosql-model","tag-professional-data-engineer","tag-storage-models"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>NoSQL Model Google Professional Data Engineer GCP<\/title>\n<meta name=\"description\" content=\"Enhance your GCP Data Engineer exam preparation by learning and understanding the concepts of NoSQL Model Now!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.testpreptraining.ai\/tutorial\/nosql-model-google-professional-data-engineer-gcp\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"NoSQL Model Google Professional Data Engineer GCP\" \/>\n<meta property=\"og:description\" content=\"Enhance your GCP Data Engineer exam preparation by learning and understanding the concepts of NoSQL Model Now!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.testpreptraining.ai\/tutorial\/nosql-model-google-professional-data-engineer-gcp\/\" \/>\n<meta property=\"og:site_name\" content=\"Testprep Training Tutorials\" \/>\n<meta property=\"article:modified_time\" content=\"2022-03-29T07:33:52+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cloud.google.com\/firestore\/docs\/images\/structure-data.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/nosql-model-google-professional-data-engineer-gcp\/\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/nosql-model-google-professional-data-engineer-gcp\/\",\"name\":\"NoSQL Model Google Professional Data Engineer GCP\",\"isPartOf\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#website\"},\"datePublished\":\"2020-04-11T14:32:01+00:00\",\"dateModified\":\"2022-03-29T07:33:52+00:00\",\"description\":\"Enhance your GCP Data Engineer exam preparation by learning and understanding the concepts of NoSQL Model Now!\",\"breadcrumb\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/nosql-model-google-professional-data-engineer-gcp\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.testpreptraining.ai\/tutorial\/nosql-model-google-professional-data-engineer-gcp\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/nosql-model-google-professional-data-engineer-gcp\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"NoSQL Model Google Professional Data Engineer GCP\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#website\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\",\"name\":\"Testprep Training Tutorials\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.testpreptraining.ai\/tutorial\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#organization\",\"name\":\"Testprep Training\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png\",\"contentUrl\":\"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png\",\"width\":583,\"height\":153,\"caption\":\"Testprep Training\"},\"image\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"NoSQL Model Google Professional Data Engineer GCP","description":"Enhance your GCP Data Engineer exam preparation by learning and understanding the concepts of NoSQL Model Now!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.testpreptraining.ai\/tutorial\/nosql-model-google-professional-data-engineer-gcp\/","og_locale":"en_US","og_type":"article","og_title":"NoSQL Model Google Professional Data Engineer GCP","og_description":"Enhance your GCP Data Engineer exam preparation by learning and understanding the concepts of NoSQL Model Now!","og_url":"https:\/\/www.testpreptraining.ai\/tutorial\/nosql-model-google-professional-data-engineer-gcp\/","og_site_name":"Testprep Training Tutorials","article_modified_time":"2022-03-29T07:33:52+00:00","og_image":[{"url":"https:\/\/cloud.google.com\/firestore\/docs\/images\/structure-data.png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/nosql-model-google-professional-data-engineer-gcp\/","url":"https:\/\/www.testpreptraining.ai\/tutorial\/nosql-model-google-professional-data-engineer-gcp\/","name":"NoSQL Model Google Professional Data Engineer GCP","isPartOf":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#website"},"datePublished":"2020-04-11T14:32:01+00:00","dateModified":"2022-03-29T07:33:52+00:00","description":"Enhance your GCP Data Engineer exam preparation by learning and understanding the concepts of NoSQL Model Now!","breadcrumb":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/nosql-model-google-professional-data-engineer-gcp\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.testpreptraining.ai\/tutorial\/nosql-model-google-professional-data-engineer-gcp\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/nosql-model-google-professional-data-engineer-gcp\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.testpreptraining.ai\/tutorial\/"},{"@type":"ListItem","position":2,"name":"NoSQL Model Google Professional Data Engineer GCP"}]},{"@type":"WebSite","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#website","url":"https:\/\/www.testpreptraining.ai\/tutorial\/","name":"Testprep Training Tutorials","description":"","publisher":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.testpreptraining.ai\/tutorial\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#organization","name":"Testprep Training","url":"https:\/\/www.testpreptraining.ai\/tutorial\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/","url":"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png","contentUrl":"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png","width":583,"height":153,"caption":"Testprep Training"},"image":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/4615","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/comments?post=4615"}],"version-history":[{"count":3,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/4615\/revisions"}],"predecessor-version":[{"id":53770,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/4615\/revisions\/53770"}],"wp:attachment":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/media?parent=4615"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/categories?post=4615"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/tags?post=4615"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}