Re: [sqlalchemy] another problem with complex join

2010-02-20 Thread Manlio Perillo
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ben De Luca ha scritto: Ok, thanks. I have never seen this pattern in use. If the import is done inside a function, usually there are no problems with circular module import. Its a performance gain as the second time you hit that function you

Re: [sqlalchemy] Re: relation for single table, not joined

2010-02-20 Thread Michael Bayer
On Feb 19, 2010, at 5:05 PM, Kent wrote: I used department as a dummy type object, but I meant it to be an illustration of what I am trying to accomplish. I was hoping the illustration would spark a oh, I know what he's trying to do... no, do it this way... when merge() recurses to list

[sqlalchemy] merge() expires attributes

2010-02-20 Thread Kent
If I have a persistent instance in my session and I call merge on an object that equates to that instance, some attributes (it seems those that aren't explicitly set on the merging instance) are expired and get re-queried the next time they are referenced. We will be supporting remote databases