Title: Release SQLite aggregate instances when queries finish by 1ndahous3 · Pull Request #9014 · RustPython/RustPython · GitHub
Open Graph Title: Release SQLite aggregate instances when queries finish by 1ndahous3 · Pull Request #9014 · RustPython/RustPython
X Title: Release SQLite aggregate instances when queries finish by 1ndahous3 · Pull Request #9014 · RustPython/RustPython
Description: Summary Release Python aggregate and window-function instances when a query finishes, fails, or its cursor is closed before completion. Run aggregate destructors after releasing SQLite locks, including nested callbacks. Avoid allocating aggregate context during finalization and check missing contexts before dereferencing them. Performance 100 aggregate groups with 64 KiB of state each, after closing the connection and collecting garbage: Retained state Before After Aggregate instances 100 0 Aggregate payload 6.25 MiB 0 AI assistance Written with Codex (GPT-6), reviewed by a human before submission. Summary by CodeRabbit Bug Fixes Improved cleanup of resources used by SQLite aggregate and window functions after queries complete, fail, or are interrupted by closing a cursor. Improved reliability when SQLite callbacks interact with connections or cursors during query execution and cleanup, including commit and rollback operations. SQLite now reports an out-of-memory error when it cannot allocate aggregate-function context.
Open Graph Description: Summary Release Python aggregate and window-function instances when a query finishes, fails, or its cursor is closed before completion. Run aggregate destructors after releasing SQLite locks, incl...
X Description: Summary Release Python aggregate and window-function instances when a query finishes, fails, or its cursor is closed before completion. Run aggregate destructors after releasing SQLite locks, incl...
Opengraph URL: https://github.com/RustPython/RustPython/pull/9014
X: @github
Domain: github.com
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:bf9edacf-9122-c55e-4e7a-a7336987dde0 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | B032:E0ADF:10FE588:15799AF:6B01FE0E |
| html-safe-nonce | 9913810aa6eab4815254895fe0b0bbf395ab0407cd0c1a1c9aae0ad503789b1e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMDMyOkUwQURGOjEwRkU1ODg6MTU3OTlBRjo2QjAxRkUwRSIsInZpc2l0b3JfaWQiOiIyMzgwODYzOTAwNTUyOTIwNTkwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 1bbc4c4d95cb01aa8360ae4645adb800f859e71084812a640a7c485f140a6fc0 |
| hovercard-subject-tag | pull_request:4793334874 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/RustPython/RustPython/pull/9014/files |
| twitter:image | https://avatars.githubusercontent.com/u/9205230?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/9205230?s=400&v=4 |
| og:image:alt | Summary Release Python aggregate and window-function instances when a query finishes, fails, or its cursor is closed before completion. Run aggregate destructors after releasing SQLite locks, incl... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git |
| octolytics-dimension-user_id | 39710557 |
| octolytics-dimension-user_login | RustPython |
| octolytics-dimension-repository_id | 135201145 |
| octolytics-dimension-repository_nwo | RustPython/RustPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 135201145 |
| octolytics-dimension-repository_network_root_nwo | RustPython/RustPython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width