The DAL doesn't support exists yet, which is kind of bad because count is 
quite less efficient than exists when all you want is to know if there is 
anything there.  
  
I would file a ticket in the pydal repository and ask for exists support 
even Table.isempty doesn't use exists. Which I see you already did, 
https://github.com/web2py/pydal/issues/447 lets see if someone picks it up 
otherwise you may have to be the one doing it :) 
  
Meanwhile if you really needs exists you need to use executesql

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to