Expanded

Create Couchbase Views

Couchbase views allow you to present to your users a variation of the underlying data in your bucket. This course covers how these can be designed using JavaScript and the MapReduce model, and then invoked using REST API calls.
Course info
Level
Intermediate
Updated
Mar 24, 2020
Duration
2h 35m
Table of contents
Description
Course info
Level
Intermediate
Updated
Mar 24, 2020
Duration
2h 35m
Description

Views in Couchbase allow you to present to your users a specific version of the underlying document data in a Couchbase bucket. This means that you can define which documents and which fields from those documents a user will see, which can also involve transforming this data before presenting to the user. Such views are coded in JavaScript using the MapReduce programming model.

We start off by creating a basic view using JavaScript in order to present data from a Couchbase bucket. We cover how views are invoked using a REST API call, and also how they can be created, modified and deleted using both the Web UI and the Couchbase API.

We then delve into the details of the map and reduce methods which constitute each Couchbase view, and explore how these can be used to filter, project and aggregate document data.

The course then moves on to the best practices when designing Couchbase views in order to create the most efficient and relevant views for your end users. We also look into how views effectively function as queries on document data by translating SQL to MapReduce views.

Finally, we explore use cases for views, which includes how their output can be filtered, and then use Couchbase views to simulate transactions.

Once you’re done with this course, you will be well-versed in the topic of Couchbase views! You will have a firm grasp of the MapReduce programming model and how it can be used with some basic JavaScript to present a view of your documents to users of your data.

About the author
About the author

An engineer at heart, I am drawn to any interesting technical topic. Big Data, ML and Cloud are presently my topics of interest.

More from the author
Design Data Models for Couchbase
Beginner
2h 7m
Sep 29, 2020
Recognize the Need for Document Databases
Beginner
1h 40m
Sep 18, 2020
More courses by Kishan Iyer
Section Introduction Transcripts
Section Introduction Transcripts

Course Overview
Hi, and welcome to this course, Create Couchbase Views. My name is Kishan Iyer, and I will be your instructor for this course. A little about myself first. I have a Master's Degree in computer science from Columbia University and have previously worked in companies such as Deutsche Bank and WebMD in New York. I presently work for Looneycorn, a studio for high‑quality video content. Views in Couchbase allow you to present to your users a specific version of the underlying document data in a Couchbase bucket. This means that you can define which documents and which fields from those documents a user will see, and this can also involve transforming that data before presenting it to the user. Such views are coded in JavaScript using the MapReduce programming model. We start off in this course by creating a basic view using JavaScript in order to present data from a Couchbase bucket. We cover how views are invoked using a REST API call and also how they can be created, modified, and deleted using both the Couchbase Web UI and the API. We then delve into the details of the map and reduce methods, which constitute each Couchbase view and explore how these can be used to filter, project, and aggregate document data. The course then moves on to the best practices when designing Couchbase views in order to create the most efficient and relevant views for your end users. We also look into how views effectively function as queries on document data by translating SQL to MapReduce views. Finally, we explore use cases for views, which includes how their output can be filtered and then use views in order to simulate transactions. Once you're done with this course, you will be well versed in the topic of Couchbase views. You will have a firm grasp of the MapReduce programming model and how it can be used with some basic JavaScript in order to prevent a view of your documents to the users of your data.