{"id":1204,"date":"2021-04-26T17:23:55","date_gmt":"2021-04-26T07:23:55","guid":{"rendered":"http:\/\/www.moneystock.net\/wp_e\/?p=1204"},"modified":"2021-04-26T17:23:55","modified_gmt":"2021-04-26T07:23:55","slug":"introduction-to-nosql-in-one-page","status":"publish","type":"post","link":"https:\/\/moneystock.net\/wp_e\/2021\/04\/26\/introduction-to-nosql-in-one-page\/","title":{"rendered":"Introduction to NoSQL in one page"},"content":{"rendered":"<p><strong>The data model of NoSQL<\/strong><\/p>\n<p>NoSQL emerged to solve the problem of the difficulty of running SQL on a cluster. i.e. scaling out. This leads me to think that if you can handle the amount of data, Big Data, in a single SQL box, you may not need NoSQL.<\/p>\n<p>Most NoSQL, as described below as type 1 to 3, is an <strong>aggregate-oriente<\/strong>d data model, which is beneficial when running on a cluster.<\/p>\n<p><strong>NoSQL types<\/strong><\/p>\n<ol>\n<li>Key-Value: Have metadata. e.g. Redis.<\/li>\n<li>Document: id is a key. e.g. MongoDB<\/li>\n<li>Column family:\u00a0 Cassandra<\/li>\n<li>Graph: Good for complex relationships. It&#8217;s\u00a0 ACID(<a title=\"Atomicity (database systems)\" href=\"https:\/\/en.wikipedia.org\/wiki\/Atomicity_(database_systems)\"> atomicity<\/a>,\u00a0<a title=\"Consistency (database systems)\" href=\"https:\/\/en.wikipedia.org\/wiki\/Consistency_(database_systems)\">consistency<\/a>,\u00a0<a title=\"Isolation (database systems)\" href=\"https:\/\/en.wikipedia.org\/wiki\/Isolation_(database_systems)\">isolation<\/a>,\u00a0<a title=\"Durability (database systems)\" href=\"https:\/\/en.wikipedia.org\/wiki\/Durability_(database_systems)\">durability<\/a>).<\/li>\n<\/ol>\n<p>All NoSQL is schemaless.<\/p>\n<p>Consistency VS Availability. It&#8217;s a business choice.<\/p>\n<p><strong>When to use NoSQL<\/strong><\/p>\n<ol>\n<li>Big Data: NoSQL can run on a cluster.<\/li>\n<li>Easy to develop: When the data model is a naturally aggregate model, NoSQL fits better than SQL.<\/li>\n<\/ol>\n<p>Reference: <a href=\"https:\/\/www.youtube.com\/watch?v=qI_g07C_Q5I\">GOTO 2012 \u2022 Introduction to NoSQL<\/a> \u2022 <a href=\"https:\/\/martinfowler.com\/\">Martin Fowler<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The data model of NoSQL NoSQL emerged to solve the problem of the difficulty of running SQL on a cluster. i.e. scaling out. This leads me to think that if you can handle the amount of data, Big Data, in a single SQL box, you may not need NoSQL. Most NoSQL, as described below as&hellip; <a class=\"more-link\" href=\"https:\/\/moneystock.net\/wp_e\/2021\/04\/26\/introduction-to-nosql-in-one-page\/\">Continue reading <span class=\"screen-reader-text\">Introduction to NoSQL in one page<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[582],"tags":[602],"class_list":["post-1204","post","type-post","status-publish","format-standard","hentry","category-sql","tag-nosql","entry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/moneystock.net\/wp_e\/wp-json\/wp\/v2\/posts\/1204","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/moneystock.net\/wp_e\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/moneystock.net\/wp_e\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/moneystock.net\/wp_e\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/moneystock.net\/wp_e\/wp-json\/wp\/v2\/comments?post=1204"}],"version-history":[{"count":1,"href":"https:\/\/moneystock.net\/wp_e\/wp-json\/wp\/v2\/posts\/1204\/revisions"}],"predecessor-version":[{"id":1206,"href":"https:\/\/moneystock.net\/wp_e\/wp-json\/wp\/v2\/posts\/1204\/revisions\/1206"}],"wp:attachment":[{"href":"https:\/\/moneystock.net\/wp_e\/wp-json\/wp\/v2\/media?parent=1204"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/moneystock.net\/wp_e\/wp-json\/wp\/v2\/categories?post=1204"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/moneystock.net\/wp_e\/wp-json\/wp\/v2\/tags?post=1204"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}