For example,

session.query(User).filter(User.name == 'fred').first()

q = session.query(User).filter(User.name == 'fred')session.query(q.exists())

session.query(exists().where(User.name == 'fred')).scalar()



are they perform pretty much the same? or is there a better way for 
checking?

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to