Files
0728f1a30c [AI] Reduce webassembly heap by freeing all prepared statements (#9131)
* [AI] Free sql.js statements prepared by runQuery

In the browser, runQuery prepared a new statement for every string query
but only freed it for queries that fetch rows. sql.js keeps unfreed
statements in the WASM heap until the database closes, so a cold load of
a large budget (~500k spreadsheet cache writes) grew the heap by hundreds
of MB. Free (or reset) the statement in all paths, including on error.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016C82Fnx6cnESa3HUTuM9SE

* [AI] Add release note

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016C82Fnx6cnESa3HUTuM9SE

* bump

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: Michael Clark <[email protected]>
2026-10-10 13:39:54 +00:00
..
2023-09-06 18:48:37 -07:00
2022-04-28 22:44:38 -04:00
2022-04-28 22:44:38 -04:00