On 11 Sep 2008, at 10:07, Hongli Lai wrote:

>
> On Sep 10, 1:14 pm, Frederick Cheung <[EMAIL PROTECTED]>
> wrote:
>> Yeah, I chatted to Koz about it. I'm planning to play around with
>> identity maps and stuff like that in conjunction with that (not  
>> that I
>> have very definite plans - more of a lets toss all these things in  
>> the
>> air and see what happens :-) )
>>
>>
>>
>>> Ah wait, I just realized that such a proxy could be useful in very
>>> large result sets. The proxy could only fetch a small amount into
>>> memory at a time, e.g. by using cursors.
>>
>> That's certainly a thought (but I have to confess ignorance as far as
>> cursors go, beyond the dictionary definition)
>
> http://www.postgresql.org/docs/8.1/static/plpgsql-cursors.html
>
thanks

> On the other hand, I don't know what identity maps are. :)

Quite simple in theory - don't have more than one instance of an  
activerecord object per row in the database. Plenty of edge cases in  
practise :-)

Fred

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" 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/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to