couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Couchdb Wiki] Trivial Update of "GaganSaksena" by GaganSaksena
Date Wed, 04 Aug 2010 17:33:36 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification.

The "GaganSaksena" page has been changed by GaganSaksena.
http://wiki.apache.org/couchdb/GaganSaksena?action=diff&rev1=6&rev2=7

--------------------------------------------------

  ||<tablewidth="80%">'''SQL''' ||'''Map''' ||'''Reduce''' ||'''Notes''' ||
  ||SELECT COUNT(*) FROM Foo; ||function (doc) {  emit(doc._id, 1); } ||_count ||        
    ||
  ||SELECT COUNT(*) FROM Foo WHERE Foo.Age ="21"; ||function (doc) {  emit(doc.age, null);
} ||_count ||Fetch view with ?key=21 ||
- ||SELECT DISTINCT Age FROM Foo; ||function (doc) {  emit(doc.age, true); } || function (key,
value) { // todo }   ||             ||
+ ||SELECT DISTINCT Age FROM Foo; ||function (doc) {  emit(doc.age, true); } || function (key,
value, rereduce) { // todo }   ||             ||
  ||GROUP BY example ||function (doc) {  // todo } ||             ||             ||
  ||GROUP BY with SORT BY example ||function (doc) {  // todo } ||             ||        
    ||
  

Mime
View raw message