Re: fetchOverview and sort ordering

Gerhard Pfeiffer <[email protected]>
Newsgroups gmane.comp.cms.opengroupware.xmlrpc.devel
Message-ID <[email protected]>
Hi,

On Fri, May 20, 2005 at 03:06:33PM -0400, Adam Tauno Williams wrote:
> > > > is it possible to have fetchOverview sort its result set?
> > > > I would like to have it sorted by startTime.
> > > I'd assume so.  There is an ordering key in the fetch specification.
> > AfaIk fetchOverview does not take a fetch specification, it only takes
> > three arguments: startDate, endDate and a companyId.
> > Whereas endDate and companyId don't need to be given and default to
> > startDate + 1 day and the calling user.
> > Do you have an example, how to call it with a fetch specification?
> No, you are correct,  I was confusing fetch and fetchOverview.  You
> probably have to sort the collection on the client side.

Hmm, I suppose ogo (respectively postgres) will be able to do the
sorting much faster as a client could because postgres should have
indices over columns often used for sorting (like startDate).

Maybe a feature-request? :)

Ciao,
  Gerhard
-- 
OpenGroupware.org XML-RPC
[email protected]
http://mail.opengroupware.org/mailman/listinfo/xmlrpc
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.