may be faster to do

db(db.tablename.id>0).select(limitby=(0,1))

perhaps we should have something like:

db(db.tablename).isempty()






On Apr 12, 12:02 pm, Marin Pranjic <[email protected]> wrote:
> Something like db(db.tablename.id>0).count() ?
>
>
>
>
>
>
>
> On Tue, Apr 12, 2011 at 5:22 PM, mart <[email protected]> wrote:
> > Hi,
>
> > is there a shortcut  to check if a table is empty? (not look to see
> > what the content is, just if it has any at all)
>
> > Thanks,
> > Mart :)

Reply via email to