Reputation: 2586
I am using couchdb to store content of courses (text, attachments) that will sync with a mobile app with pouchdb. This content will change from time to time, and I want to use the replication mechanism to send the updated content to the mobile devices.
I have two options here:
What is the best option?
Upvotes: 1
Views: 229
Reputation: 1213
For attachments, CouchDB will do sub document updates, PouchDB will not although that is being worked on for PouchDB.
For any of the data not stored in attachments, the rest of the JSON neither do sub document level updates, so every change will transfer the entire JSON across.
If you are looking to minimise the amount of data that gets transferred on changes and are not worried about atomic changes to the course as a whole. Then splitting it out into a few documents sounds like a decent idea.
Upvotes: 2