couchdb

Download CouchDB

If you can't read please download the document

Upload: codebits

Post on 16-Jun-2015

2.538 views

Category:

Technology


3 download

TRANSCRIPT

  • 1. CouchDB

2. Whos talking? [email protected] / @janlAnd you? 3. RDBMS vsJust Storing DataSorry for bashing! 4. RDBMS vs Just Storing Data Design schema upfrontWrite or use software totranslate your data intothat schemaand back 1) beware of speed considerations without having an app to measure 2) or use an ORM which turns out to be a pain in the back for all sorts of reasons 3) Most Data is not inherently relational 5. RDBMS vs Just Storing DataIsolated data recordscalled DocumentsNo schema (!)and semi-structured data records that make up the apps data objects 6. Documents in the Real World 7. Documents in the Real WorldBills, tax forms, letters Same type != same structure Can be out of date Natural data behaviour Actual data record, no pointer 8. { _id: BCCD12CBB, _rev: AB764C,type: person, name: Darth Vader, age: 63, headware: [Helmet, Sombrero], dark_side: true } 9. { _id: BCCD12CBB, _rev: AB764C,type: person, name: Darth Vader, age: 63, headware: [Helmet, Sombrero], dark_side: true } 10. { _id: BCCD12CBB, _rev: AB764C,type: person, name: Darth Vader, age: 63, headware: [Helmet, Sombrero], dark_side: true } 11. { _id: BCCD12CBB, _rev: AB764C,type: person, name: Darth Vader, age: 63, headware: [Helmet, Sombrero], dark_side: true } 12. CRUD Arbeiten mit Dokumenten Create: HTTP POST/db/BCCD12CBBRead: HTTP GET/db/BCCD12CBB Update: HTTP PUT/db/BCCD12CBB Delete: HTTP DELETE /db/BCCD12CBB 13. $ curl -X GET http://server/database/document {_id:ABC,_rev:1D4,data :...} $ 14. Zend_Http_Client