Greetings,
First, many thanks for creating such an awesome library. Secondly, I'm
very new to this and I've a basic question. I've a method that looks
like following
def test_table_load(self):
doctor = Table('TestTable', META, autoload=True, autoload_with=DB)
Now while the software runs, this method is called probably 40--50
times. I'm using MySQL and have following questions
- So if I call test_table_load() 10 times, SQLAlchemy will load the
database table with all records 10 times?
- If I want to call test_table_load() 10 times but I want to make sure
SQLAlchemy loads 'TestTable' only once in memory should I replace this
doctor = Table('Doctor', META, autoload=True, autoload_with=DB)
with
doctor = Table('Doctor', META, autoload=True, autoload_with=DB,
keep_existing=True)
If this is not the way to do it then please let me know how can I make
sure SQLAlchemy loads my table only once during the complete run of
the program?
Please enlighten me. I will really appreciate all the help.
--
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.