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.
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.
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.
OpenCourser helps millions of learners each year. People visit us to learn workspace skills, ace their exams, and nurture their curiosity.
Our extensive catalog contains over 50,000 courses and twice as many books. Browse by search, by topic, or even by career interests. We'll match you to the right resources quickly.
Find this site helpful? Tell a friend about us.
We're supported by our community of learners. When you purchase or subscribe to courses and programs or purchase books, we may earn a commission from our partners.
Your purchases help us maintain our catalog and keep our servers humming without ads.
Thank you for supporting OpenCourser.