{"id":9770,"date":"2021-08-13T00:00:35","date_gmt":"2021-08-13T07:00:35","guid":{"rendered":"https:\/\/www.couchbase.com\/blog\/?p=9770"},"modified":"2025-06-13T17:21:06","modified_gmt":"2025-06-14T00:21:06","slug":"collections-simplify-your-analysis-with-couchbase-analytics","status":"publish","type":"post","link":"https:\/\/www.couchbase.com\/blog\/collections-simplify-your-analysis-with-couchbase-analytics\/","title":{"rendered":"Simplify Your Data Analysis with Scopes &amp; Collections in Couchbase Analytics"},"content":{"rendered":"<p><strong>Scopes and Collections aren&#8217;t just for organizing your data<\/strong> \u2013 now they can be used for your data analytics as well. <\/p>\n<p>As part of <a href=\"https:\/\/www.couchbase.com\/blog\/couchbase-server-7-0-release\/?ref=blog\" rel=\"noopener\" target=\"_blank\">the Couchbase 7.0 release<\/a>, support for Scopes and Collections has been extended to the Analytics Service as well. <\/p>\n<p><a href=\"https:\/\/www.couchbase.com\/blog\/scopes-and-collections-for-modern-multi-tenant-applications-couchbase-7-0\/?ref=blog\" rel=\"noopener\" target=\"_blank\">Scopes and Collections are logical containers<\/a> within a Couchbase Bucket. A Collection is a data container within a Bucket. A Scope is a mechanism for grouping multiple Collections within a Bucket. Collections allow users to group related data \u2013 much like tables in relational databases. <\/p>\n<p>Let&#8217;s take a closer look at how your team can use Scopes and Collections as part of your enterprise data analysis. But first, let&#8217;s clarify some terminology.<\/p>\n<h2>Collections Terminology in Couchbase 7.0<\/h2>\n<p>The <a href=\"https:\/\/www.couchbase.com\/products\/analytics\/?ref=blog\" rel=\"noopener\" target=\"_blank\">Couchbase Analytics Service<\/a> includes the following key concepts that are used in the 6.x and 7.0 releases:<\/p>\n<p><a href=\"https:\/\/docs.couchbase.com\/server\/current\/analytics\/5_ddl.html?ref=blog#Dataverses\" rel=\"noopener\" target=\"_blank\"><strong>Dataverses<\/a>:<\/strong> Dataverse is short for data universe, a top-level organizing concept and a namespace for other metadata entities (such as links, Buckets, datasets, indexes, etc). There is one Default dataverse already created (and it can&#8217;t be deleted).<\/p>\n<p><a href=\"https:\/\/docs.couchbase.com\/server\/current\/analytics\/5_ddl.html?ref=blog#Datasets\" rel=\"noopener\" target=\"_blank\"><strong>Datasets<\/a>:<\/strong> Datasets are containers that hold JSON objects linked to underlying Collections. As you can imagine, the new Collections feature fits well with Analytics datasets. In fact, datasets are synonymous with Collections.<\/p>\n<h2>How Collections Work in Couchbase Analytics<\/h2>\n<p>Before digging into how Collections work in Couchbase Analytics, let\u2019s take a step back and look at how Collections work in the Data Service. <\/p>\n<p>Consider a travel industry dataset that involves airline and hotel bookings. Let&#8217;s say we have a Bucket named `travel`. A Bucket is the equivalent of a database in the relational model. Within that `travel` Bucket, we have a Scope called `inventory` (similar to a schema in RDBMS) and within that `inventory` Scope, we have four Collections: `airlines`, `airports`, `routes` and `hotels` (these would be tables in RDBMS). <\/p>\n<p>I&#8217;ve illustrated this example in Diagram A below:<\/p>\n<div class=\"wp-block-spacer\" style=\"height: 15px\" aria-hidden=\"true\"> <\/div>\n<p><a href=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2020\/11\/Screen-Shot-2020-11-13-at-3.48.41-PM.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2020\/11\/Screen-Shot-2020-11-13-at-3.48.41-PM.png\" alt=\"Bucket, Scope and Collections in Couchbase Server 7.0\" width=\"441\" height=\"387\" class=\"aligncenter size-full wp-image-9772\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2020\/11\/Screen-Shot-2020-11-13-at-3.48.41-PM.png 441w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2020\/11\/Screen-Shot-2020-11-13-at-3.48.41-PM-300x263.png 300w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2020\/11\/Screen-Shot-2020-11-13-at-3.48.41-PM-20x18.png 20w\" sizes=\"auto, (max-width: 441px) 100vw, 441px\" \/><\/a><\/p>\n<div class=\"wp-block-spacer\" style=\"height: 15px\" aria-hidden=\"true\"> <\/div>\n<p>Next up, Diagram B below shows how Collections in the Data Service appear in the Analytics Service:<\/p>\n<div class=\"wp-block-spacer\" style=\"height: 15px\" aria-hidden=\"true\"> <\/div>\n<p><a href=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2020\/11\/Travel-Collection-Analytics.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2020\/11\/Travel-Collection-Analytics-1024x874.png\" alt=\"How Couchbase Collections in the Data Service appear in the Analytics Service\" width=\"900\" height=\"768\" class=\"aligncenter size-large wp-image-9930\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2020\/11\/Travel-Collection-Analytics-1024x874.png 1024w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2020\/11\/Travel-Collection-Analytics-300x256.png 300w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2020\/11\/Travel-Collection-Analytics-768x655.png 768w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2020\/11\/Travel-Collection-Analytics-1536x1311.png 1536w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2020\/11\/Travel-Collection-Analytics-20x17.png 20w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2020\/11\/Travel-Collection-Analytics-1320x1127.png 1320w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2020\/11\/Travel-Collection-Analytics.png 1706w\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" \/><\/a><\/p>\n<div class=\"wp-block-spacer\" style=\"height: 15px\" aria-hidden=\"true\"> <\/div>\n<p>There are multiple ways to use your Collections with the Couchbase Analytics Service. In our example, let&#8217;s say we want to enable the Hotel Collection. In the Analytics workbench, we have a few options using these Analytics Data Definition Languages (DDLs):<\/p>\n<ol>\n<li>If you&#8217;re familiar with the Analytics Service, leverage any of the following statements (supported in 6.x and 7.0) to create the Hotel Collection from above:\n<ul>\n<li>Create a dataverse\/namespace using the following:\n<ul>\n<li><span class=\"lang:default decode:true crayon-inline\">CREATE DATAVERSE `travel-sample`.inventory;<\/span><\/li>\n<\/ul>\n<\/li>\n<li>Create the Hotel Collection using the following statement:\n<ul>\n<li><span class=\"lang:default decode:true crayon-inline\">CREATE DATASET `travel-sample`.inventory.hotel ON `travel-sample`.inventory.hotel;<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li><span class=\"lang:default decode:true crayon-inline\">ALTER COLLECTION `travel-sample`.inventory.hotel ENABLE ANALYTICS;<\/span>\n<ul>\n<li>The `ENABLE` option creates an Analytics namespace or dataverse called <code>`travel-sample`.inventory<\/code> if one does not exist already.\n<\/li>\n<li>The Analytics Collection or dataset in the above namespace is `hotel`.\n<\/li>\n<\/ul>\n<\/li>\n<li><span class=\"lang:default decode:true crayon-inline\">CREATE ANALYTICS COLLECTION `travel-sample`.inventory.hotel ON `travel-sample`.inventory.hotel;<\/span>\n<ul>\n<li>This statement assumes that the dataverse <code>`travel-sample`.inventory<\/code> is already in place. If not, you can create one as mentioned in option #1 above. Also, we support a new DDL (below) which creates a dataverse using Scope nomenclature:\n<ul>\n<li><span class=\"lang:default decode:true crayon-inline \">CREATE ANALYTICS SCOPE `travel-sample`.inventory;<\/span><\/li>\n<\/ul>\n<\/li>\n<li>Once the `CREATE ANALYTICS` Collection statement above is executed, the Hotel Collection is created as well.\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<div class=\"wp-block-spacer\" style=\"height: 15px\" aria-hidden=\"true\"> <\/div>\n<h2>Conclusion<\/h2>\n<p>Collections are easy to use with the Analytics Service. <\/p>\n<p>They align with <a href=\"https:\/\/www.couchbase.com\/products\/n1ql\/?ref=blog\" rel=\"noopener\" target=\"_blank\">N1QL<\/a> naming conventions to refer to Buckets, Scopes and Collections so your queries are interchangeable between the Query and Analytics engines. To ensure backward compatibility with 6.x releases, the Analytics Service continues to support DDL statements to create and manage dataverses and datasets.<\/p>\n<p>If you want to learn more about the Couchbase Server 7.0 release, <a href=\"https:\/\/docs.couchbase.com\/server\/7.0\/introduction\/whats-new.html?ref=blog\" rel=\"noopener\" target=\"_blank\">check out What&#8217;s New<\/a> and\/or <a href=\"https:\/\/docs.couchbase.com\/server\/7.0\/release-notes\/relnotes.html?ref=blog\" rel=\"noopener\" target=\"_blank\">the 7.0 release notes<\/a>.<\/p>\n<p>I hope you&#8217;re excited about this new functionality of Scopes and Collections working with Couchbase Analytics. I look forward to hearing your feedback on <a href=\"https:\/\/www.couchbase.com\/forums\/?ref=blog\" rel=\"noopener\" target=\"_blank\">Couchbase Forums<\/a>.<\/p>\n<div class=\"wp-block-spacer\" style=\"height: 30px\" aria-hidden=\"true\"> <\/div>\n<div style=\"text-align:center\"><strong>Don&#8217;t just read about the Analytics Service \u2013 give it a try for yourself<br \/>\n<a href=\"https:\/\/www.couchbase.com\/downloads\/?ref=blog\" rel=\"noopener\" target=\"_blank\">Download Couchbase 7 today<\/a><\/strong><\/div>\n<div class=\"wp-block-spacer\" style=\"height: 15px\" aria-hidden=\"true\"> <\/div>\n<p>&nbsp;<br \/>\n&nbsp;<br \/>\n&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Scopes and Collections aren&#8217;t just for organizing your data \u2013 now they can be used for your data analytics as well. As part of the Couchbase 7.0 release, support for Scopes and Collections has been extended to the Analytics Service [&hellip;]<\/p>\n","protected":false},"author":58630,"featured_media":11701,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[2294,1816,9336,1812],"tags":[2014,9237,9367,2267,1261,1385,9301],"ppma_author":[8967],"class_list":["post-9770","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-analytics","category-couchbase-server","category-scopes-and-collections","category-n1ql-query","tag-data-analysis","tag-data-analytics","tag-data-definition-language","tag-ddl","tag-json","tag-rdbms","tag-relational-database"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v25.8 (Yoast SEO v25.8) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Simplify Your Data Analysis with Scopes &amp; Collections in Couchbase Analytics<\/title>\n<meta name=\"description\" content=\"Learn how to harness the power of Scopes and Collections \u2013 new in Couchbase Server 7.0 \u2013 for your enterprise data analytics using the Analytics Service.\" \/>\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.couchbase.com\/blog\/collections-simplify-your-analysis-with-couchbase-analytics\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Simplify Your Data Analysis with Scopes &amp; Collections in Couchbase Analytics\" \/>\n<meta property=\"og:description\" content=\"Learn how to harness the power of Scopes and Collections \u2013 new in Couchbase Server 7.0 \u2013 for your enterprise data analytics using the Analytics Service.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.couchbase.com\/blog\/collections-simplify-your-analysis-with-couchbase-analytics\/\" \/>\n<meta property=\"og:site_name\" content=\"The Couchbase Blog\" \/>\n<meta property=\"article:published_time\" content=\"2021-08-13T07:00:35+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-06-14T00:21:06+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2020\/12\/enterprise-data-analysis-scopes-collections-couchbase-analytics-service-social.png\" \/>\n\t<meta property=\"og:image:width\" content=\"800\" \/>\n\t<meta property=\"og:image:height\" content=\"418\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Idris Motiwala\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2020\/12\/enterprise-data-analysis-scopes-collections-couchbase-analytics-service-social.png\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Idris Motiwala\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"TechArticle\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/collections-simplify-your-analysis-with-couchbase-analytics\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/collections-simplify-your-analysis-with-couchbase-analytics\/\"},\"author\":{\"name\":\"Idris Motiwala\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/2fc07a18d91ce2e4e0f1f7c5c9e620b8\"},\"headline\":\"Simplify Your Data Analysis with Scopes &amp; Collections in Couchbase Analytics\",\"datePublished\":\"2021-08-13T07:00:35+00:00\",\"dateModified\":\"2025-06-14T00:21:06+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/collections-simplify-your-analysis-with-couchbase-analytics\/\"},\"wordCount\":661,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/collections-simplify-your-analysis-with-couchbase-analytics\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2020\/12\/enterprise-data-analysis-scopes-collections-couchbase-analytics-service.png\",\"keywords\":[\"Data Analysis\",\"data analytics\",\"Data Definition Language\",\"DDL\",\"JSON\",\"RDBMS\",\"relational database\"],\"articleSection\":[\"Couchbase Analytics\",\"Couchbase Server\",\"Scopes and Collections\",\"SQL++ \/ N1QL Query\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.couchbase.com\/blog\/collections-simplify-your-analysis-with-couchbase-analytics\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/collections-simplify-your-analysis-with-couchbase-analytics\/\",\"url\":\"https:\/\/www.couchbase.com\/blog\/collections-simplify-your-analysis-with-couchbase-analytics\/\",\"name\":\"Simplify Your Data Analysis with Scopes &amp; Collections in Couchbase Analytics\",\"isPartOf\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/collections-simplify-your-analysis-with-couchbase-analytics\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/collections-simplify-your-analysis-with-couchbase-analytics\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2020\/12\/enterprise-data-analysis-scopes-collections-couchbase-analytics-service.png\",\"datePublished\":\"2021-08-13T07:00:35+00:00\",\"dateModified\":\"2025-06-14T00:21:06+00:00\",\"description\":\"Learn how to harness the power of Scopes and Collections \u2013 new in Couchbase Server 7.0 \u2013 for your enterprise data analytics using the Analytics Service.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/collections-simplify-your-analysis-with-couchbase-analytics\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.couchbase.com\/blog\/collections-simplify-your-analysis-with-couchbase-analytics\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/collections-simplify-your-analysis-with-couchbase-analytics\/#primaryimage\",\"url\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2020\/12\/enterprise-data-analysis-scopes-collections-couchbase-analytics-service.png\",\"contentUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2020\/12\/enterprise-data-analysis-scopes-collections-couchbase-analytics-service.png\",\"width\":1200,\"height\":628,\"caption\":\"Learn more about using the new Scopes and Collections feature alongside Couchbase Analytics\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/collections-simplify-your-analysis-with-couchbase-analytics\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.couchbase.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Simplify Your Data Analysis with Scopes &amp; Collections in Couchbase Analytics\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#website\",\"url\":\"https:\/\/www.couchbase.com\/blog\/\",\"name\":\"The Couchbase Blog\",\"description\":\"Couchbase, the NoSQL Database\",\"publisher\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.couchbase.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#organization\",\"name\":\"The Couchbase Blog\",\"url\":\"https:\/\/www.couchbase.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png\",\"contentUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png\",\"width\":218,\"height\":34,\"caption\":\"The Couchbase Blog\"},\"image\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/2fc07a18d91ce2e4e0f1f7c5c9e620b8\",\"name\":\"Idris Motiwala\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/image\/28d4b56674680cd3d7fe940321c3e98a\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/41b4ee771dab1b1ff8152be7b5545a13ff3cca8ca7e9021e762e3d7af21763f0?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/41b4ee771dab1b1ff8152be7b5545a13ff3cca8ca7e9021e762e3d7af21763f0?s=96&d=mm&r=g\",\"caption\":\"Idris Motiwala\"},\"description\":\"Idris is a Principal Product Manager, Analytics at Couchbase with 20+ years experience in design, development and execution of software products at both Fortune 500s and startups leading teams in digital transformation, cloud and analytics. Idris holds an MS in Technology Management and certifications in product management .\",\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/idrismotiwala\/\"],\"url\":\"https:\/\/www.couchbase.com\/blog\/author\/idris-motiwala\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Simplify Your Data Analysis with Scopes &amp; Collections in Couchbase Analytics","description":"Learn how to harness the power of Scopes and Collections \u2013 new in Couchbase Server 7.0 \u2013 for your enterprise data analytics using the Analytics Service.","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.couchbase.com\/blog\/collections-simplify-your-analysis-with-couchbase-analytics\/","og_locale":"en_US","og_type":"article","og_title":"Simplify Your Data Analysis with Scopes &amp; Collections in Couchbase Analytics","og_description":"Learn how to harness the power of Scopes and Collections \u2013 new in Couchbase Server 7.0 \u2013 for your enterprise data analytics using the Analytics Service.","og_url":"https:\/\/www.couchbase.com\/blog\/collections-simplify-your-analysis-with-couchbase-analytics\/","og_site_name":"The Couchbase Blog","article_published_time":"2021-08-13T07:00:35+00:00","article_modified_time":"2025-06-14T00:21:06+00:00","og_image":[{"width":800,"height":418,"url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2020\/12\/enterprise-data-analysis-scopes-collections-couchbase-analytics-service-social.png","type":"image\/png"}],"author":"Idris Motiwala","twitter_card":"summary_large_image","twitter_image":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2020\/12\/enterprise-data-analysis-scopes-collections-couchbase-analytics-service-social.png","twitter_misc":{"Written by":"Idris Motiwala","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"TechArticle","@id":"https:\/\/www.couchbase.com\/blog\/collections-simplify-your-analysis-with-couchbase-analytics\/#article","isPartOf":{"@id":"https:\/\/www.couchbase.com\/blog\/collections-simplify-your-analysis-with-couchbase-analytics\/"},"author":{"name":"Idris Motiwala","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/2fc07a18d91ce2e4e0f1f7c5c9e620b8"},"headline":"Simplify Your Data Analysis with Scopes &amp; Collections in Couchbase Analytics","datePublished":"2021-08-13T07:00:35+00:00","dateModified":"2025-06-14T00:21:06+00:00","mainEntityOfPage":{"@id":"https:\/\/www.couchbase.com\/blog\/collections-simplify-your-analysis-with-couchbase-analytics\/"},"wordCount":661,"commentCount":0,"publisher":{"@id":"https:\/\/www.couchbase.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/collections-simplify-your-analysis-with-couchbase-analytics\/#primaryimage"},"thumbnailUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2020\/12\/enterprise-data-analysis-scopes-collections-couchbase-analytics-service.png","keywords":["Data Analysis","data analytics","Data Definition Language","DDL","JSON","RDBMS","relational database"],"articleSection":["Couchbase Analytics","Couchbase Server","Scopes and Collections","SQL++ \/ N1QL Query"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.couchbase.com\/blog\/collections-simplify-your-analysis-with-couchbase-analytics\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.couchbase.com\/blog\/collections-simplify-your-analysis-with-couchbase-analytics\/","url":"https:\/\/www.couchbase.com\/blog\/collections-simplify-your-analysis-with-couchbase-analytics\/","name":"Simplify Your Data Analysis with Scopes &amp; Collections in Couchbase Analytics","isPartOf":{"@id":"https:\/\/www.couchbase.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.couchbase.com\/blog\/collections-simplify-your-analysis-with-couchbase-analytics\/#primaryimage"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/collections-simplify-your-analysis-with-couchbase-analytics\/#primaryimage"},"thumbnailUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2020\/12\/enterprise-data-analysis-scopes-collections-couchbase-analytics-service.png","datePublished":"2021-08-13T07:00:35+00:00","dateModified":"2025-06-14T00:21:06+00:00","description":"Learn how to harness the power of Scopes and Collections \u2013 new in Couchbase Server 7.0 \u2013 for your enterprise data analytics using the Analytics Service.","breadcrumb":{"@id":"https:\/\/www.couchbase.com\/blog\/collections-simplify-your-analysis-with-couchbase-analytics\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.couchbase.com\/blog\/collections-simplify-your-analysis-with-couchbase-analytics\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.couchbase.com\/blog\/collections-simplify-your-analysis-with-couchbase-analytics\/#primaryimage","url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2020\/12\/enterprise-data-analysis-scopes-collections-couchbase-analytics-service.png","contentUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2020\/12\/enterprise-data-analysis-scopes-collections-couchbase-analytics-service.png","width":1200,"height":628,"caption":"Learn more about using the new Scopes and Collections feature alongside Couchbase Analytics"},{"@type":"BreadcrumbList","@id":"https:\/\/www.couchbase.com\/blog\/collections-simplify-your-analysis-with-couchbase-analytics\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.couchbase.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Simplify Your Data Analysis with Scopes &amp; Collections in Couchbase Analytics"}]},{"@type":"WebSite","@id":"https:\/\/www.couchbase.com\/blog\/#website","url":"https:\/\/www.couchbase.com\/blog\/","name":"The Couchbase Blog","description":"Couchbase, the NoSQL Database","publisher":{"@id":"https:\/\/www.couchbase.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.couchbase.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.couchbase.com\/blog\/#organization","name":"The Couchbase Blog","url":"https:\/\/www.couchbase.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png","contentUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png","width":218,"height":34,"caption":"The Couchbase Blog"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/2fc07a18d91ce2e4e0f1f7c5c9e620b8","name":"Idris Motiwala","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/image\/28d4b56674680cd3d7fe940321c3e98a","url":"https:\/\/secure.gravatar.com\/avatar\/41b4ee771dab1b1ff8152be7b5545a13ff3cca8ca7e9021e762e3d7af21763f0?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/41b4ee771dab1b1ff8152be7b5545a13ff3cca8ca7e9021e762e3d7af21763f0?s=96&d=mm&r=g","caption":"Idris Motiwala"},"description":"Idris is a Principal Product Manager, Analytics at Couchbase with 20+ years experience in design, development and execution of software products at both Fortune 500s and startups leading teams in digital transformation, cloud and analytics. Idris holds an MS in Technology Management and certifications in product management .","sameAs":["https:\/\/www.linkedin.com\/in\/idrismotiwala\/"],"url":"https:\/\/www.couchbase.com\/blog\/author\/idris-motiwala\/"}]}},"authors":[{"term_id":8967,"user_id":58630,"is_guest":0,"slug":"idris-motiwala","display_name":"Idris Motiwala","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/41b4ee771dab1b1ff8152be7b5545a13ff3cca8ca7e9021e762e3d7af21763f0?s=96&d=mm&r=g","author_category":"","last_name":"Motiwala","first_name":"Idris","job_title":"","user_url":"","description":"Idris is a Principal Product Manager, Analytics at Couchbase with 20+ years experience in design, development and execution of software products at both Fortune 500s and startups leading teams in digital transformation, cloud and analytics. Idris holds an MS in Technology Management and certifications in product management ."}],"_links":{"self":[{"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/posts\/9770","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/users\/58630"}],"replies":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/comments?post=9770"}],"version-history":[{"count":0,"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/posts\/9770\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/media\/11701"}],"wp:attachment":[{"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/media?parent=9770"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/categories?post=9770"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/tags?post=9770"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=9770"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}