8000 bpo-42862: Use functools.lru_cache iso. _sqlite.Cache in sqlite3 module by erlend-aasland · Pull Request #24203 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-42862: Use functools.lru_cache iso. _sqlite.Cache in sqlite3 module #24203

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 18 commits into from
Jun 3, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Move What's New to 3.11
  • Loading branch information
Erlend E. Aasland committed May 25, 2021
commit 2795aca91e9bb25ff7f6e611d6ecac04df478435
6 changes: 0 additions & 6 deletions Doc/whatsnew/3.10.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1237,12 +1237,6 @@ Add audit events for :func:`~sqlite3.connect/handle`,
:meth:`~sqlite3.Connection.load_extension`.
(Contributed by Erlend E. Aasland in :issue:`43762`.)

:mod:`sqlite3` now utilizes :meth:`functools.lru_cache` to implement the
connection statement cache. The statement cache can be accessed via the new
method :meth:`sqlite3.Connection.statement_cache`. As a small optimisation, the
default statement cache size has been increased from 100 to 128.
(Contributed by Erlend E. Aasland in :issue:`42862`.)

sys
---

Expand Down
9 changes: 9 additions & 0 deletions Doc/whatsnew/3.11.rst
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,15 @@ New Modules
Improved Modules
================

sqlite3
-------

:mod:`sqlite3` now utilizes :meth:`functools.lru_cache` to implement the
connection statement cache. The statement cache can be accessed via the new
method :meth:`sqlite3.Connection.statement_cache`. As a small optimisation, the
default statement cache size has been increased from 100 to 128.
(Contributed by Erlend E. Aasland in :issue:`42862`.)


Optimizations
=============
Expand Down
0