Cloudant Fundamentals: Using the Bulk API

Bulk up your CRUD (part 5 of 10)

  • GET or POST /db/_all_docs - for reads
  • POST /db/_bulk_docs - for creates, updates and deletions
Bulk candy, bulk docs — you get the idea. Photo by Matt Schwartz on Unsplash

Creating documents in bulk

Reading the documents back in bulk

Updating documents in bulk

  • add the _id/_rev of each document
  • add the data we want to add, in this case the IMDB URL of each actor

Bulk deletions

Next time

--

--

Things we made with data at IBM’s Center for Open Source Data and AI Technologies.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store