Skip to content

gh-89121: Keep the number of pending SQLite statements to a minimum#30379

Merged
erlend-aasland merged 8 commits intopython:mainfrom
erlend-aasland:sqlite-reset
Jun 23, 2022
Merged

gh-89121: Keep the number of pending SQLite statements to a minimum#30379
erlend-aasland merged 8 commits intopython:mainfrom
erlend-aasland:sqlite-reset

Conversation

@erlend-aasland
Copy link
Contributor

@erlend-aasland erlend-aasland commented Jan 3, 2022

SQLite runs smooth when we keep the number of pending statements low.
Do everything we can to reset statements when they are completely
stepped through (SQLITE_DONE), or when sqlite3_step returns an
error.

Also, on the cursor, Py_CLEAR the current statement object whenever possible.

Fixes #89121

https://bugs.python.org/issue44958

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[sqlite3] only reset statements when needed

5 participants