# HG changeset patch # User Dirk Olmes # Date 1313887453 -7200 # Node ID dc0a82841a60ea77aa87fa9bb54654d707105013 # Parent 7f07ced80d6f199c8a7c94f6c50c2d0199eef73d add design document for couchdb backend diff -r 7f07ced80d6f -r dc0a82841a60 COUCHDB.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/COUCHDB.txt Sun Aug 21 02:44:13 2011 +0200 @@ -0,0 +1,11 @@ +Idea for a couchdb backend + +- one database "feedworm" +- type attribute for the different document types: 'feed', 'feedEntry', 'preference' +- a view for unread feedEntries, keyed by feed id +- get unread feedEntries from that view, use feed id as query parameter + +doc = { "type" : "feedEntry", "feed" : "48c74f2b70c85862f217c05c5f0d5c91", "link" : entry.link, "title" : entry.title, "summary" : entry.summary, "read" : False, "updated" : entry.updated} + +curl -X GET 'http://localhost:5984/todo/_design/todo/_view/unfinished?key="iObjects"' +