CouchDB
meetup@cluj.rb ~$ whoami
ls -l /couchdb/●   intro●   demo
view /couchdb/lol
head /couchdb/about   Apache CouchDB is a document-orienteddatabase that can be queried and indexed using      JavaScript ...
cat /couchdb/aboutCouchDB provides a RESTful JSON API than canbe accessed from any environment that allows               H...
tail /couchdb/aboutCouchDB is written in Erlang, a robust functional   programming language ideal for building       concu...
cat /couchdb/history started in 2005 by Damien Katzbecame an Apache project in 2008    currently at version 1.1.1
head /couchdb/how   CouchDB is a document oriented database   data is stored in “documents” and not in          “relations...
view /couchdb/how
view /couchdb/how
cat /couchdb/how                     no SQL        querying is done using “views”views are defined using Map/Reduce functi...
cat /couchdb/howMap functions emit (key, value) interpretation of                    the dataReduce functions aggregate da...
head /couchdb/use               good for:storing documents – or any data which is            document-like      hosting en...
cat /couchdb/whyvery easy to program with – no SQL, no schema,                    no ORMschema-less means very easy to dep...
tail /couchdb/use               not suitable for:   storing data which is relational in naturebe careful with data that ne...
view /couchdb/lol
vi /couchdb/doc{    “_id”: ”BCCD12CBB”,    “_rev”: ”AB764C”,    “type”: ”person”,    “name”: ”Darth Vader”,    “age”: 63, ...
cat /couchdb/rest/howcreate: HTTP POST /db/BCCD12CBB  read: HTTP GET /db/BCCD12CBB update: HTTP PUT /db/BCCD12CBBdelete: H...
head /couchdb/rest/usage$ curl -X GET http://server/database/document    {“_id”:”ABC”,“_rev”:”1D4”,”data”:...}
cat /couchdb/testssilly read-only benchmark with memory                saturation2,500 req/s sustained on a 2Ghz dual core...
exec /couchdb/demo    lets get dirty!
view /couchdb/lol
sudo halt    Q?
Upcoming SlideShare
Loading in...5
×

Mihai Plesa - CouchDB

974

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
974
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
5
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Mihai Plesa - CouchDB

  1. 1. CouchDB
  2. 2. meetup@cluj.rb ~$ whoami
  3. 3. ls -l /couchdb/● intro● demo
  4. 4. view /couchdb/lol
  5. 5. head /couchdb/about Apache CouchDB is a document-orienteddatabase that can be queried and indexed using JavaScript in a MapReduce fashion.CouchDB also offers incremental replication withbi-directional conflict detection and resolution.
  6. 6. cat /couchdb/aboutCouchDB provides a RESTful JSON API than canbe accessed from any environment that allows HTTP requests.CouchDB’s built in Web admin console speaksdirectly to the database using HTTP requests issued from your browser.
  7. 7. tail /couchdb/aboutCouchDB is written in Erlang, a robust functional programming language ideal for building concurrent distributed systems.Erlang allows for a flexible design that is easily scalable and readily extensible.
  8. 8. cat /couchdb/history started in 2005 by Damien Katzbecame an Apache project in 2008 currently at version 1.1.1
  9. 9. head /couchdb/how CouchDB is a document oriented database data is stored in “documents” and not in “relations” like in an RDBMSnon-locking MVCC and ACID compliant data store
  10. 10. view /couchdb/how
  11. 11. view /couchdb/how
  12. 12. cat /couchdb/how no SQL querying is done using “views”views are defined using Map/Reduce functionsdata is indexed using these views as it is stored in the DB
  13. 13. cat /couchdb/howMap functions emit (key, value) interpretation of the dataReduce functions aggregate data emitted by map functionsMap/Reduce functions are written in JavaScript or CoffeeScript
  14. 14. head /couchdb/use good for:storing documents – or any data which is document-like hosting entire applications
  15. 15. cat /couchdb/whyvery easy to program with – no SQL, no schema, no ORMschema-less means very easy to deploy changeseasy to administer, backup, replicate, can work offline
  16. 16. tail /couchdb/use not suitable for: storing data which is relational in naturebe careful with data that needs to have unique values
  17. 17. view /couchdb/lol
  18. 18. vi /couchdb/doc{ “_id”: ”BCCD12CBB”, “_rev”: ”AB764C”, “type”: ”person”, “name”: ”Darth Vader”, “age”: 63, “headware”: [“Helmet”, “Sombrero”], “dark_side”: true}
  19. 19. cat /couchdb/rest/howcreate: HTTP POST /db/BCCD12CBB read: HTTP GET /db/BCCD12CBB update: HTTP PUT /db/BCCD12CBBdelete: HTTP DELETE /db/BCCD12CBB
  20. 20. head /couchdb/rest/usage$ curl -X GET http://server/database/document {“_id”:”ABC”,“_rev”:”1D4”,”data”:...}
  21. 21. cat /couchdb/testssilly read-only benchmark with memory saturation2,500 req/s sustained on a 2Ghz dual core Athlon using 9.8 mb RAM
  22. 22. exec /couchdb/demo lets get dirty!
  23. 23. view /couchdb/lol
  24. 24. sudo halt Q?
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×