Skip to Content
Seven Databases in Seven Weeks, 2nd Edition
book

Seven Databases in Seven Weeks, 2nd Edition

by Luc Perkins, Eric Redmond, Jim Wilson
April 2018
Beginner to intermediate
360 pages
8h 54m
English
Pragmatic Bookshelf
Content preview from Seven Databases in Seven Weeks, 2nd Edition

Day 3: Advanced Views, Changes API, and Replicating Data

In Days 1 and 2, you learned how to perform basic CRUD operations and interact with views for finding data. Building on this experience, today we’ll take a closer look at views, dissecting the reduce part of the mapreduce equation. After that, we’ll develop some Node.js applications in JavaScript to leverage CouchDB’s unique Changes API. Lastly, we’ll discuss replication and how CouchDB handles conflicting data.

Creating Advanced Views with Reducers

Mapreduce-based views provide the means by which we can harness CouchDB’s indexing and aggregation facilities. In Day 2, all our views consisted solely of mappers. Now we’re going to add reducers to the mix, developing new capabilities against ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Microsoft Power BI - The Complete Masterclass - 2025 EDITION

Microsoft Power BI - The Complete Masterclass - 2025 EDITION

Nikolai Schuler

Publisher Resources

ISBN: 9781680505962Errata Page