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] Update of "View_collation" by JoanTouzet
Date Mon, 24 Mar 2014 13:36:10 GMT
Dear Wiki user,

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

The "View_collation" page has been changed by JoanTouzet:
https://wiki.apache.org/couchdb/View_collation?action=diff&rev1=18&rev2=19

  <<Include(EditTheWiki)>>
  
  = View Collation =
+ '''This page has been replaced by the official documentation''' '''at''' http://docs.couchdb.org/en/latest/couchapp/views/collation.html.
- 
- See also the [[http://docs.couchdb.org/en/latest/couchapp/views/collation.html]] for this
topic.
  
  <<TableOfContents()>>
  
@@ -34, +33 @@

    }
  }
  }}}
+ This trick was [[http://www.cmlenz.net/blog/2007/10/couchdb-joins.html|originally documented]]
by Christopher Lenz. See also [[http://stackoverflow.com/questions/6064987/couchdb-map-reduce-how-to-output-less-rows/6066433#6066433|jhs
answer on stackoverflow]] for more useful tips.
- This trick was [[http://www.cmlenz.net/blog/2007/10/couchdb-joins.html|originally documented]]
by Christopher Lenz.
- See also [[http://stackoverflow.com/questions/6064987/couchdb-map-reduce-how-to-output-less-rows/6066433#6066433|jhs
answer on stackoverflow]] for more useful tips.
  
  === Sorting by Dates ===
  It maybe be convenient to store date attributes in a human readable format (i.e. as a String),
but still sort by date. This can be done by converting the date to a number in the emit function.
For example, given a document with a created_at attribute of 'Wed Jul 23 16:29:21 +0100 2008',
the following emit function would sort by date

Mime
View raw message