1 - About

NoSQL database

Everything in CouchDB is javascript.

CouchDB uses optimistic concurrency control, which does not use any locking system.

3 - Document

Document = set of key/value pairs

"Subject": "I like Rixt" 
"Author": "Nico" 
"PostedDate": "5/27/2013" 
"Tags": ["love", "fact", "wife"]
"Body": "Just to say that i love my wife"

4 - Update

  • Full Consistency within a document
  • Lock-free concurrency (Optimistic – attempts to edit dirty data fail)
  • No multi-row transactions.
    • A Transaction is a sequence of related record updates
    • Entire sequence considered ACID

5 - Views

Map Reduce Views:

         "map":"function(doc) {if (doc.Type=='customer’) emit(null, doc) }"
         "map":"function(doc) {if (doc.Type=='customer’) emit(doc.LastName, doc) }"
         "map":"function(doc) { if (doc.Type=='purchase’) emit(doc.Customer, doc.Amount) }",
         "reduce":"function(keys, values) { return sum(values) }"

Data Science
Data Analysis
Data Science
Linear Algebra Mathematics

Powered by ComboStrap