I'm tring to find the size of a dataset after executing the query.
With lower-level APIs, i usually execute the query, get the dataset
size (number of rows), print it for debug, and then iterate over it.

I'm trying to do this in Sequel by using the ds.count method. However,
this method executes a count query using the underlying query. This
means that the daset may change between the count query and the real
query. Isn't there a way to get the real dataset size from the
database? Most drivers allow this, without having to load all data
into memory. Also, i don't want to wrap my query in a transaction for
this to work.

Thanks,
Ricardo Ramalho

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sequel-talk?hl=en.

Reply via email to