[Couchdb Wiki] Trivial Update of "View Snippets" by GlennRempe
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification. The following page has been changed by GlennRempe: http://wiki.apache.org/couchdb/View_Snippets -- - This page collects code snippets to be used in your ["Views"]. They are mainly ment to help getting your head arround the map/reduce approach to databases. Keep in mind that the the Futon Web-Client silently adds group=true to your views. + This page collects code snippets to be used in your ["Views"]. They are mainly meant to help get your head around the map/reduce approach to accessing database content. Keep in mind that the the Futon web client silently adds group=true to your views. == Get docs with a particular user id ==
[Couchdb Wiki] Trivial Update of "View Snippets" by GlennRempe
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification. The following page has been changed by GlennRempe: http://wiki.apache.org/couchdb/View_Snippets The comment on the change is: Spelling -- Then query with key=USER_ID to get all the rows that match that user. - == Get all documents which have an attatchment == + == Get all documents which have an attachment == This lists only the documents which have an attachment. @@ -29, +29 @@ In SQL this would be something like {{{SELECT if FROM table WHERE attachment IS NOT NULL}}}. - == Count documents which and without an attachment == + == Count documents with and without an attachment == Call this with ''group=true'' or you only get the combined number of documents witch and without attachments.