diff options
author | Jordan Cook <jordan.cook.git@proton.me> | 2023-02-28 19:05:55 -0600 |
---|---|---|
committer | Jordan Cook <jordan.cook.git@proton.me> | 2023-03-01 15:22:18 -0600 |
commit | c83e4e523008337a6f8f638e65ca217177d8ed5c (patch) | |
tree | 40a8b5a6c0773afe4e08bec93743a9650f555dd5 /HISTORY.md | |
parent | 0f330b54e15966ff74582cfa7d794f6b844d324c (diff) | |
download | requests-cache-c83e4e523008337a6f8f638e65ca217177d8ed5c.tar.gz |
Share SQLite connection objects among threads and use lock for write operations instead of using thread-local connections
Diffstat (limited to 'HISTORY.md')
-rw-r--r-- | HISTORY.md | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -55,6 +55,7 @@ * Add `ttl_offset` argument to add a delay between cache expiration and deletion * **SQLite**: * Improve performance for removing expired responses with `delete()` + * Improve performance (slightly) with a large number of threads and high request rate * Add `count()` method to count responses, with option to exclude expired responses (performs a fast indexed count instead of slower in-memory filtering) * Add `size()` method to get estimated size of the database (including in-memory databases) * Add `sorted()` method with sorting and other query options @@ -110,6 +111,7 @@ 🪲 **Bugfixes:** * Fix usage of memory backend with `install_cache()` +* Fix an uncommon `OperationalError: database is locked` in SQLite backend * Fix issue on Windows with occasional missing `CachedResponse.created_at` timestamp * Add `CachedRequest.path_url` property for compatibility with `RequestEncodingMixin` * Fix potential `AttributeError` due to undetected imports when requests-cache is bundled in a PyInstaller package |