SlideShare a Scribd company logo
COUCHDB on iOS
Data Syncing & Stuff
Monday, 23 September, 13
Who are we?
Os
@djshiow
Meiwin
@meiwin
We are the developers of ISIS app
Monday, 23 September, 13
Agenda
• CouchDB
• What is it?
• Couch DB on iOS
• Couch DB in the wild
• Demo
• ISIS App
• “Hello Couch” App
Monday, 23 September, 13
What is
• NoSQL database, document-based, JSON
{
"Subject": "I like Plankton",
"Author": "Rusty",
"PostedDate": "5/23/2006",
"Tags": ["plankton", "baseball", "decisions"],
"Body": "I decided today that I don't like baseball. I like plankton."
}
Monday, 23 September, 13
What is
• Key Features
• Schema Free
• Access document by key
• Views (~Index)
• Peer-based replication (syncing)
Monday, 23 September, 13
Peer-based replication
• CouchDB can be hosted on server and
client (i.e. iOS app)
• Each host can work offline
• Full database activity
• Come back online and sync!!
• Built in conflict detection
Monday, 23 September, 13
Couch DB on iOS
• A lightweight version of Couch DB for
mobile
• Small foot print, good performance
• Recently changed to “Couchbase Lite”
Monday, 23 September, 13
Touch DB: Benefits
• Works offline & sync when online
• Good for Data sync engine
• No Schema : Flexibility
• Fast query by “Key”
Monday, 23 September, 13
Touch DB: Challenges
• Slow “Advanced” queries & view building
on iOS
• Solution: Customize and use coredata
• (A bit) harder to keep logs of who’s made
changes
• Solution: In document logs
• New client sync from beginning
• Solution: Pre-built database
Monday, 23 September, 13
Couch DB in the wild
• Who uses it:
• Draw something
• (Part of) Linked In
• McGraw-Hill,Amadeus,Allrecipes.com ...
• Hosting services
• Cloudant (http://cloudant.com/)
• Iris Couch http://www.iriscouch.com/)
Monday, 23 September, 13
Demo
Monday, 23 September, 13
Q&A?
Monday, 23 September, 13

More Related Content

KEY
Redis At 6Wunderkinder
PPTX
Toolbox for Web Designers
PDF
Why CouchDB
PDF
Data as Documents: Overview and intro to MongoDB
PPTX
Mongodb open data day 2014
PDF
dataviz on d3.js + elasticsearch
PPTX
Brief overview of TypeScript - Ljubljana JavaScript Users Group
PDF
CouchDB – A Database for the Web
Redis At 6Wunderkinder
Toolbox for Web Designers
Why CouchDB
Data as Documents: Overview and intro to MongoDB
Mongodb open data day 2014
dataviz on d3.js + elasticsearch
Brief overview of TypeScript - Ljubljana JavaScript Users Group
CouchDB – A Database for the Web

Similar to CouchDB on iOS (13)

PPTX
Mobile App Development With IBM Cloudant
PDF
No sql data-storage for-your-ios-apps-using-couchbase-mobile
PPT
Couch db
PDF
Couch db
PDF
CouchDB
PPTX
Offline first development - Glasgow PHP - January 2016
PDF
Introduction to NoSQL with Couchbase
PPTX
Couch DB/PouchDB approach for hybrid mobile applications
PDF
From 0 to syncing
PDF
Intro Couchdb
PDF
Couchbase Mobile on Android
PPTX
Cluster of unreliable commodity hardware (couchdb) (2)
PPTX
Couch DB
Mobile App Development With IBM Cloudant
No sql data-storage for-your-ios-apps-using-couchbase-mobile
Couch db
Couch db
CouchDB
Offline first development - Glasgow PHP - January 2016
Introduction to NoSQL with Couchbase
Couch DB/PouchDB approach for hybrid mobile applications
From 0 to syncing
Intro Couchdb
Couchbase Mobile on Android
Cluster of unreliable commodity hardware (couchdb) (2)
Couch DB
Ad

Recently uploaded (20)

PDF
A comparative analysis of optical character recognition models for extracting...
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PDF
August Patch Tuesday
PDF
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
PDF
Getting Started with Data Integration: FME Form 101
PPTX
1. Introduction to Computer Programming.pptx
PDF
A novel scalable deep ensemble learning framework for big data classification...
PDF
Web App vs Mobile App What Should You Build First.pdf
PDF
WOOl fibre morphology and structure.pdf for textiles
PDF
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
OMC Textile Division Presentation 2021.pptx
PPTX
SOPHOS-XG Firewall Administrator PPT.pptx
PPTX
A Presentation on Artificial Intelligence
PDF
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
Approach and Philosophy of On baking technology
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Encapsulation theory and applications.pdf
PDF
A comparative study of natural language inference in Swahili using monolingua...
A comparative analysis of optical character recognition models for extracting...
Group 1 Presentation -Planning and Decision Making .pptx
August Patch Tuesday
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
Getting Started with Data Integration: FME Form 101
1. Introduction to Computer Programming.pptx
A novel scalable deep ensemble learning framework for big data classification...
Web App vs Mobile App What Should You Build First.pdf
WOOl fibre morphology and structure.pdf for textiles
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
Building Integrated photovoltaic BIPV_UPV.pdf
OMC Textile Division Presentation 2021.pptx
SOPHOS-XG Firewall Administrator PPT.pptx
A Presentation on Artificial Intelligence
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
NewMind AI Weekly Chronicles - August'25-Week II
Approach and Philosophy of On baking technology
MIND Revenue Release Quarter 2 2025 Press Release
Encapsulation theory and applications.pdf
A comparative study of natural language inference in Swahili using monolingua...
Ad

CouchDB on iOS

  • 1. COUCHDB on iOS Data Syncing & Stuff Monday, 23 September, 13
  • 2. Who are we? Os @djshiow Meiwin @meiwin We are the developers of ISIS app Monday, 23 September, 13
  • 3. Agenda • CouchDB • What is it? • Couch DB on iOS • Couch DB in the wild • Demo • ISIS App • “Hello Couch” App Monday, 23 September, 13
  • 4. What is • NoSQL database, document-based, JSON { "Subject": "I like Plankton", "Author": "Rusty", "PostedDate": "5/23/2006", "Tags": ["plankton", "baseball", "decisions"], "Body": "I decided today that I don't like baseball. I like plankton." } Monday, 23 September, 13
  • 5. What is • Key Features • Schema Free • Access document by key • Views (~Index) • Peer-based replication (syncing) Monday, 23 September, 13
  • 6. Peer-based replication • CouchDB can be hosted on server and client (i.e. iOS app) • Each host can work offline • Full database activity • Come back online and sync!! • Built in conflict detection Monday, 23 September, 13
  • 7. Couch DB on iOS • A lightweight version of Couch DB for mobile • Small foot print, good performance • Recently changed to “Couchbase Lite” Monday, 23 September, 13
  • 8. Touch DB: Benefits • Works offline & sync when online • Good for Data sync engine • No Schema : Flexibility • Fast query by “Key” Monday, 23 September, 13
  • 9. Touch DB: Challenges • Slow “Advanced” queries & view building on iOS • Solution: Customize and use coredata • (A bit) harder to keep logs of who’s made changes • Solution: In document logs • New client sync from beginning • Solution: Pre-built database Monday, 23 September, 13
  • 10. Couch DB in the wild • Who uses it: • Draw something • (Part of) Linked In • McGraw-Hill,Amadeus,Allrecipes.com ... • Hosting services • Cloudant (http://cloudant.com/) • Iris Couch http://www.iriscouch.com/) Monday, 23 September, 13