[sqlalchemy] Re: Changing lazy property for primary mapper on the fly

2007-03-26 Thread Koen Bok

Ok, thanks!

On Mar 26, 4:26 am, Michael Bayer <[EMAIL PROTECTED]> wrote:
> no.  do a clear_mappers() and build your mappers again if you need to  
> change the base configuration.
>
> On Mar 25, 2007, at 3:35 PM, Koen Bok wrote:
>
>
>
> > I get this, but that's only on a particular query object. That makes
> > sense, but is there no way to 'globally' set this in the mapper?
>
> > Koen
>
> > On Mar 25, 4:51 pm, Michael Bayer <[EMAIL PROTECTED]> wrote:
> >>http://www.sqlalchemy.org/docs/
> >> datamapping.html#datamapping_selectrelations_options
>
> >> On Mar 25, 2007, at 6:50 AM, Koen Bok wrote:
>
> >>> Is it possible to change the lazy property of a primary mapper of an
> >>> object's relation on the fly so from then on it wil change the eager
> >>> loading of that relation.
>
> >>> I want to use this for a small debug window in my app where I can
> >>> change these on the fly to test which settings are optimal for the
> >>> connection.
>
> >>> Koen


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
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
-~--~~~~--~~--~--~---



[sqlalchemy] Re: Changing lazy property for primary mapper on the fly

2007-03-25 Thread Michael Bayer

no.  do a clear_mappers() and build your mappers again if you need to  
change the base configuration.

On Mar 25, 2007, at 3:35 PM, Koen Bok wrote:

>
> I get this, but that's only on a particular query object. That makes
> sense, but is there no way to 'globally' set this in the mapper?
>
> Koen
>
> On Mar 25, 4:51 pm, Michael Bayer <[EMAIL PROTECTED]> wrote:
>> http://www.sqlalchemy.org/docs/
>> datamapping.html#datamapping_selectrelations_options
>>
>> On Mar 25, 2007, at 6:50 AM, Koen Bok wrote:
>>
>>
>>
>>> Is it possible to change the lazy property of a primary mapper of an
>>> object's relation on the fly so from then on it wil change the eager
>>> loading of that relation.
>>
>>> I want to use this for a small debug window in my app where I can
>>> change these on the fly to test which settings are optimal for the
>>> connection.
>>
>>> Koen
>
>
> >


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
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
-~--~~~~--~~--~--~---



[sqlalchemy] Re: Changing lazy property for primary mapper on the fly

2007-03-25 Thread Koen Bok

I get this, but that's only on a particular query object. That makes
sense, but is there no way to 'globally' set this in the mapper?

Koen

On Mar 25, 4:51 pm, Michael Bayer <[EMAIL PROTECTED]> wrote:
> http://www.sqlalchemy.org/docs/
> datamapping.html#datamapping_selectrelations_options
>
> On Mar 25, 2007, at 6:50 AM, Koen Bok wrote:
>
>
>
> > Is it possible to change the lazy property of a primary mapper of an
> > object's relation on the fly so from then on it wil change the eager
> > loading of that relation.
>
> > I want to use this for a small debug window in my app where I can
> > change these on the fly to test which settings are optimal for the
> > connection.
>
> > Koen


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
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
-~--~~~~--~~--~--~---



[sqlalchemy] Re: Changing lazy property for primary mapper on the fly

2007-03-25 Thread Michael Bayer

http://www.sqlalchemy.org/docs/ 
datamapping.html#datamapping_selectrelations_options

On Mar 25, 2007, at 6:50 AM, Koen Bok wrote:

>
> Is it possible to change the lazy property of a primary mapper of an
> object's relation on the fly so from then on it wil change the eager
> loading of that relation.
>
> I want to use this for a small debug window in my app where I can
> change these on the fly to test which settings are optimal for the
> connection.
>
> Koen
>
>
> >


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
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
-~--~~~~--~~--~--~---