it needs to fire off the query to see whats changed when you go to  
flush().  otherwise it has no ability to know what needs to be saved.

On Apr 12, 2007, at 11:43 AM, svilen wrote:

>
> while on the same subject, how do i copy one object's relatives to
> another object without loading them all?
>  user1.addresses = user2.addreses does not work, it makes them share
> the same InstrList
>  user1.addresses = user2.addreses[:] does work, but fires a full query
> (maybe with obj-instantiation)
> This is in the case of implicit association, using secondary=table
>
> On Thursday 12 April 2007 18:17:11 Michael Bayer wrote:
>> On Apr 12, 2007, at 3:30 AM, Kaali wrote:
>>> Thanks for the answers.
>>>
>>> I implemented message loading with find_members() kind of method,
>>> as shown in the documentation link you gave, and it got twice as
>>> fast. But it's still nowhere near the speed without the ORM.
>>
>> i get the impression youre trying to do a partial eager load.  any
>> query that you can execute by itself can be fed into the ORM and
>> turned into object-mapped results, including the (partial,
>> incomplete, whatever) fulfillment of whatever relationships you
>> like, using query.instances().   have you looked into that ?
>>
>>
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" 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/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to