There was an error while loading. Please reload this page.
1 parent f3fa63e commit f461a7fCopy full SHA for f461a7f
12 files changed
Doc/library/sqlite3.rst
@@ -213,7 +213,7 @@ Module functions and constants
213
The :mod:`sqlite3` module internally uses a statement cache to avoid SQL parsing
214
overhead. If you want to explicitly set the number of statements that are cached
215
for the connection, you can set the *cached_statements* parameter. The currently
216
- implemented default is to cache 100 statements.
+ implemented default is to cache 128 statements.
217
218
If *uri* is true, *database* is interpreted as a URI. This allows you
219
to specify options. For example, to open a database in read-only mode
Misc/NEWS.d/next/Library/2021-01-13-00-02-44.bpo-42862.Z6ACLN.rst
@@ -0,0 +1,4 @@
1
+:mod:`sqlite3` now utilizes :meth:`functools.lru_cache` to implement the
2
+connection statement cache. As a small optimisation, the default
3
+statement cache size has been increased from 100 to 128.
4
+Patch by Erlend E. Aasland.
Modules/_sqlite/cache.c
0 commit comments