couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthieu Rakotojaona <matthieu.rakotoja...@gmail.com>
Subject Re: View cache invalidation
Date Wed, 11 Apr 2012 21:04:05 GMT
On Wed, Apr 11, 2012 at 10:46 PM, Julien Dreux <jdreux@justlexit.com> wrote:
> retrieve the list of businesses that are open at a given time
> (e.g. Wednesday at 2:05 PM).

Well then, just emit this :
  emit([day, openingHour],doc.businessName)

and if you want to see businesses opening on Wednesday before 0205 (
== opened at 0205 ) :
  GET /path/to/view?startkey=["w","0000"]&endkey=["w","0205"]


-- 
Matthieu RAKOTOJAONA

Mime
View raw message