fix(core): reduce memory peaks in long sessions
This commit is contained in:
parent
e707e416ed
commit
fe28f3b1dd
21 changed files with 2332 additions and 105 deletions
|
|
@ -0,0 +1,8 @@
|
|||
ALTER TABLE `part` ADD `data_model` text;
|
||||
--> statement-breakpoint
|
||||
UPDATE part
|
||||
SET data_model = json_remove(data, '$.state.metadata')
|
||||
WHERE length(CAST(data AS BLOB)) > 65536
|
||||
AND json_extract(data, '$.type') = 'tool'
|
||||
AND json_extract(data, '$.state.status') = 'completed'
|
||||
AND length(CAST(json_extract(data, '$.state.metadata') AS BLOB)) > 65536;
|
||||
1755
packages/core/migration/20260603120017_warm_guardsmen/snapshot.json
generated
Normal file
1755
packages/core/migration/20260603120017_warm_guardsmen/snapshot.json
generated
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue