擅长:python、mysql、java
<blockquote>
<p>SQLAlchemy is just the connector to the database, the whole query runs at the end of the database.</p>
</blockquote>
<p>在过程和SQLAlchemy的帮助下优化查询,您可以将其归档。
这里有一个很好的阅读,可以优化你的使用方式。
<a href="http://docs.sqlalchemy.org/en/latest/core/connections.html#understanding-autocommit" rel="nofollow noreferrer">SQLAlchemy collection docs</a></p>
<p>如果您使用的是MySQL数据库,那么还应该尝试MySQLdb API,它比SQLAlchemy快一点,因为MySQLdb是专门面向对象的MySQL操作和迭代的。在</p>