This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Kodiologist
Recipients Kodiologist, aymeric.augustin, coleifer, ghaering, loewis, nagylzs, r.david.murray, vstinner
Date 2022-03-25.14:12:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1648217559.78.0.432651281133.issue16958@roundup.psfhosted.org>
In-reply-to
Content
This bit me real bad. On Python 3.8, I wrote a program with `isolation_level = None` and `with db: …` and spent a long time figuring out why writes were so slow. Turns out that `with db` doesn't actually start a transaction in this case, as the documentation suggests it should. This issue is approaching the age of 10, so if there's still uncertainty about how the implementation or the interface should change, the docs should be clarified in the meantime.

I always thought the Python library turning off autocommit by default, contrary to SQLite's command-line interface, was needlessly surprising. I think it contributed to this problem because the docs about context managers seem to assume you have autocommit off.
History
Date User Action Args
2022-03-25 14:12:39Kodiologistsetrecipients: + Kodiologist, loewis, ghaering, vstinner, r.david.murray, nagylzs, aymeric.augustin, coleifer
2022-03-25 14:12:39Kodiologistsetmessageid: <1648217559.78.0.432651281133.issue16958@roundup.psfhosted.org>
2022-03-25 14:12:39Kodiologistlinkissue16958 messages
2022-03-25 14:12:39Kodiologistcreate