10. Who am I?
It calls 'zetto ohnami'
I'd worked at mainframe env(z/OS)
DBA
z/OS,DB2
current job
DB Development consultant
Building Virtulization env
CouchDB guy
I wrote the article at "@IT"
No.1,No.2 is released.
http://www.atmarkit.co.jp/fdb/rensai/09_couchdb/01/couchdb01.html
http://www.atmarkit.co.jp/fdb/rensai/09_couchdb/02/couchdb01.html
I'm enjoyning android programming,too.
13. We can acces via HTTP method
GET(refer)
POST(add)
PUT(add/update)
DELETE(delete)
14. Document is map on URI
http://servername:5984/DB name/doc name
(example)
http://z.ohnami.com:5984/my-memo/good-idea
15. We treat data as JSON
{
"_id":"good-idea",
"title":"how to be relax day off",
"date":"2009-10-31",
"descripiton":"yeah,Let's go to OSC",
"equipment":["laptop","card","Poken"],
"status":{
"guts":3,
"thru":40,
"heart beat":80
}
}
16. Wrapping up
Access via HTTP
GET
PUT
POST
DELETE
Reply as JSON format http://server name:5984/
{ DBname/document name
name:"z.ohnami",
phone:"555",
blood:"AA"
}
21. Let's use view !!
change the key of document
Document's default key is "_id"
Add parameters getting view results.
.../_design/d01/_view/gin-by-proof?key=30'
.../_design/d01/_view/gin-by-proof?startkey=20&endkey=60'
.../_design/d01/_view/gin-by-proof?descending=true'
.../_design/d01/_view/gin-by-proof?descending=true&limit=10'
Map & Reduce
Each document is applied map function.
Data summary is easy,if we use reduce
22. show&list
show
Adjust document format
JSON → HTML Relax!!
list
Adjust view's output format
JSON → HTML Relax!!
Data list → detail(list → show)is popular pattern
36. Let's use CouchDB!!
put the data toward CouchDB with relax !!
Most suitable data is paper data
Enjoy Design Document & replication
CouchDB is flexible to design system archtecutre