Compiled cache not working with SA executemany
未关闭
bug
sqlalchemy
- 主要语言
- Python
- 星标
- 1.9k
- 派生
- 272
- PR 合并指标
- 30 天内没有已合并 PR
描述
I've been poking at the sqlalchemy connections compiled cache. It seems to work just fine for normal queries, but anything that goes through executemany does not seem to get cached. My test case is bulk insert, which seems to be suspiciously *slower* than when using multiple cached single queries. After taking a look at aiomysql's saconnection, the executemany does not actually even implement the cache.
So, is this omission intentional or just a forgotten feature ? I can't think of a case where the caching would not work, but on the other hand, I'm a noob when it comes to *sql drivers :)
贡献指南
评估
这个 Issue 还没有评估数据。