Hi All,

Can we initialize metadata one time (let's say during the first time
application access) , store the same in the global context and then reuse
the already intialized metatada for catering multiple requests ? Any
threading related issues ?

So here is what I want to do and wanna confirm if this is right:

As soon as the application boots up:

Application Initialization -> create engine and bound metadata -> Load all
tables (i.e. create Table objects, autoload=True) -> Map tables and classes
-> Store Metadata and loaded Tables in a user defined Factory class

When ever application gets subsequent requests the below will happen:

Get the required table objects/metadata from the above factory -> create
session -> do whatever --> flush/close session.

Also, the application can get multiple concurrent requests.

Any thread safety issues that you guys see here in re-using one time
instantiated Table/mapper objects ?

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