couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bryan rasmussen <rasmussen.br...@gmail.com>
Subject Re: multiple keys query for a view with multiple key outputs
Date Mon, 11 Nov 2013 09:01:20 GMT
Ok, well I can of course make a view that emits the ip and then do
keys=["18.72.0.3", " 617.253.1101"]  etc. etc.
But I also want to be able to sort by the timestamp in various ways.
How should I do that?


Thanks



On Sun, Nov 10, 2013 at 7:36 PM, Jens Alfke <jens@couchbase.com> wrote:

>
> On Nov 10, 2013, at 9:50 AM, bryan rasmussen <rasmussen.bryan@gmail.com>
> wrote:
>
> > 1. ignores the timestamps (which are being used to sort)
>
> You can’t do that using the same view. Any query can only return a
> contiguous range of keys. You’ll have to create another view whose keys are
> IP addresses, and query that.
>
> —Jens

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