You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by Apache Wiki <wi...@apache.org> on 2014/03/24 14:36:10 UTC

[Couchdb Wiki] Update of "View_collation" by JoanTouzet

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