incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hhsuper <hhsu...@gmail.com>
Subject Re: view sorting and group question?
Date Mon, 22 Jun 2009 02:09:05 GMT
should i say that couchdb isn't for such usage? or i doesn't get the essence
or couchdb doesn't impl this feature yet?

On Sun, Jun 21, 2009 at 10:24 AM, Paul Davis <paul.joseph.davis@gmail.com>wrote:

> If you're trying to do something like a table that has sortable
> columns, then yes, you're going to have to use multiple views for that
> page.
>
> On Sat, Jun 20, 2009 at 10:15 PM, hhsuper<hhsuper@gmail.com> wrote:
> > but if i need to use the view as a datasource to the web page, i need
> change
> > to right view to query on every sorting?
> >
> > On Sun, Jun 21, 2009 at 3:42 AM, Paul Davis <paul.joseph.davis@gmail.com
> >wrote:
> >
> >> On Fri, Jun 19, 2009 at 9:02 PM, hhsuper<hhsuper@gmail.com> wrote:
> >> > thanks paul,
> >> >
> >> > do you mean i need another view to resolve this, the difference
> between
> >> them
> >> > are the key order?
> >> >
> >>
> >> Yeah, if you're wanting to 'resort' a view, the CouchDB way is to
> >> create a second view for each 'sort order'.
> >>
> >> HTH,
> >> Paul Davis
> >>
> >> > i mean i want to group or sort not with start at the first key, could
> i
> >> > achieve this goal in only view?
> >> >
> >> > On Sat, Jun 20, 2009 at 8:51 AM, Paul Davis <
> paul.joseph.davis@gmail.com
> >> >wrote:
> >> >
> >> >> If you want different key sorting then you'll need to emit different
> >> >> keys. The same goes for grouping differently.
> >> >>
> >> >> Paul Davis
> >> >>
> >> >> On Fri, Jun 19, 2009 at 8:48 PM, hhsuper<hhsuper@gmail.com> wrote:
> >> >> > Hi, my view return structure like this:
> >> >> >
> >> >> >
> >> >>
> >>
> "key":["1","10075","351"],"value":{"count":27420,"score":2085790,"grade":76.06819839533188}
> >> >> >
> >> >> >
> >> >> > the key column refer to userid, dialogid and seesionid, i know
i
> can
> >> >> group
> >> >> > with userid or with userid, dialogid, but how can i group with
> >> >> > dialogid or dialogid,
> >> >> > sessionid?
> >> >> > also about the sorting, the default is using all key, how can
i
> >> sorting
> >> >> only
> >> >> > with userid or only with dialogid?
> >> >> >
> >> >> > give some suggestion pls.
> >> >> >
> >> >> > --
> >> >> > Yours sincerely
> >> >> >
> >> >> > Jack Su
> >> >> >
> >> >>
> >> >
> >> >
> >> >
> >> > --
> >> > Yours sincerely
> >> >
> >> > Jack Su
> >> >
> >>
> >
> >
> >
> > --
> > Yours sincerely
> >
> > Jack Su
> >
>



-- 
Yours sincerely

Jack Su

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