incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carl Bourne <carl.bou...@me.com>
Subject Sorting dates in CouchDB
Date Mon, 08 Oct 2012 09:21:08 GMT
Hi I just wanted to sanity check what I'm doing here.

I have a bunch of documents stored in Couch with expiry dates like this: "expire": "2020-07-28T15:13:00+00:00"

I have a simple map function defined like this:

function(doc) {
emit(doc.expire);
}

I'm then querying the data ranges like this: ?startkey="2012-10-02"&endkey="2012-12-02"

Is this the correct way to do this type of thing?

Regards,

Carl

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message