On Jul 28, 2007, at 10:52 AM, michael wrote:

>
>
> Sorry if this is naive.. but.. if the data is 'readonly' and can not
> be flushed, why keep the very valuable thread, session, and db
> connection open?  Why not just load data into a global variable and be
> done with it?
>

a session is not at all valuable.  its an object with a couple of  
dictionaries inside of it.  if not bound directly to a connection and  
not within a transaction, it references no database resources.  the  
idea here is that the session would be used as a sort of "global"  
variable.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to