Done : Issue 655 <http://code.google.com/p/web2py/issues/detail?id=655>:Adding
cache argument to .count()

Richard

On Fri, Feb 10, 2012 at 12:02 AM, Massimo Di Pierro <
massimo.dipie...@gmail.com> wrote:

> open a ticket. this should be added
>
> On Feb 9, 11:42 am, Richard Vézina <ml.richard.vez...@gmail.com>
> wrote:
> > Is it just me ?
> >
> > db(query).count(cache=(cache.ram, 60))
> >
> > Won't work...
> >
> > I get :
> >
> > TypeError: count() got an unexpected keyword argument 'cache'
> >
> > Richard
> >
> >
> >
> >
> >
> >
> >
> > On Thu, Feb 9, 2012 at 9:44 AM, Anthony <abasta...@gmail.com> wrote:
> > > I can think of two ways to do it, but I don't like either one.  First
> > >> is to formulate the query without the limitby clause and do a
> > >> db(query).count().  That would give me the total number of records in
> > >> the set.  Then add the limitby clause to the query to get the records
> > >> of interest.
> >
> > > FYI, I think this is how SQLFORM.grid does it.
> >
> > > Anthony
>

Reply via email to