On Tue, Feb 12, 2013 at 10:12 AM, shaung <shaun.g...@gmail.com> wrote:
> For the following code:
>
> from sqlalchemy import create_engine, MetaData, Table
>
> dbengine = create_engine('mssql+pyodbc://MYDSN')
> dbmeta = MetaData()
> dbmeta.bind = dbengine
>
> def get_table(name):
>     table = DBTable(name, dbmeta, autoload=True, autoload_with=dbengine)
>

If you add echo='debug' to your create_engine call, SA will log all
calls to the database and rows returned, which might give you an idea
of where all the time is being spent.

Hope that helps,

Simon

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at http://groups.google.com/group/sqlalchemy?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to