First: `join` allows you to specify a join condition. You can often use 
that to bypass tables or automat selects

      query(A).join(B, A.id == B.id_a)

But: what you really need to do is check the generated SQL to see what is 
going on, and tweak that to eliminate the joins/fields you don't need. Then 
you can run the raw SQL against EXPLAIN in an Oracle client to see what is 
slow and why.  Based on that, you can tweak what SqlAlchemy does.


-- 
SQLAlchemy - 
The Python SQL Toolkit and Object Relational Mapper

http://www.sqlalchemy.org/

To post example code, please provide an MCVE: Minimal, Complete, and Verifiable 
Example.  See  http://stackoverflow.com/help/mcve for a full description.
--- 
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 https://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to