Hi Jeremy,

I was using to check if any record exists on table:

Person.where(name: 'Dennis').any?

But as far as i see in my logs, this fetch the whole record and translated 
as:

SELECT * FROM persons WHERE name = 'Dennis'

How can I check existence (if any record available) without fetching whole 
record(s)?

Thanks,
Dennis.

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sequel-talk/8b0e1a3f-e8bb-4b2a-9ac3-f4fdc8b30971n%40googlegroups.com.

Reply via email to