Fred, That's right. If I run rails runner "User.scoped" then no query to db
at all. Thanks for the enlightening info.
On Sat, Oct 23, 2010 at 9:34 AM, Frederick Cheung <
frederick.che...@gmail.com> wrote:
>
>
> On Oct 23, 1:27 am, marchmatch wrote:
> >
Hi,
Is Rails3 ActiveRecord supposed to be lazy loading? In the following snippet
when I call scoped on User model, it does return a ActiveRecord::Relation
object. But at the same time the query is performed: "User Load (0.3ms)
SELECT "users".* FROM "users". If I do a u.all after it, no query is
p
2 matches
Mail list logo