app.db size concerns #4762
Replies: 1 comment
-
|
This looks like a real data-lifecycle bug, not just a “run VACUUM sometimes” issue. Assuming the diagnosis is accurate, I think there are a few separate problems here that should probably be handled in order:
I would avoid treating The safest first implementation slice might be measurement-only: add a small diagnostic/repair dry-run that reports DB size by table, largest This probably deserves a tracked issue rather than staying only as a discussion, because it affects storage growth, search indexing, upload lifecycle, and migration safety. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I noticed the
app.dbfile in my Odysseus data directory growing quite large. So I ran an agent to try and understand what is going on there.A few details first. My
app.dbsize was ~640 MB. According to the agent,Running
sqlite3 app.db 'VACUUM;'immediately reduced the file size by 190 MB. I also set auto_vacuum to incremental, but I'm not sure if this will get overridden by Odysseus code.I only had one chat session in Odysseus, ~10k tokens total, multimodal with 6 images. Quoting the agent below:
Bonus comment: I checked the
uploadsdirectory, and it turns out, old uploads are never deleted even after deleting the chat sessions those files were uploaded to. This should probably be changed.More from the agent:
So... if I'm reading this correctly, my single chat session with <50 MB of images becomes 365 MB in the database because the images are stored in a very inefficient way. And they don't even need to be stored in the first place because they are already on disk in the
uploadsdirectory.I don't think I'm qualified enough to attempt fixing this, but I do hope this thread will catch some of the repo maintainers' attention. For now, I'll just run vacuum manually (or see if the auto vacuum setting sticks), and manually delete old uploads.
Beta Was this translation helpful? Give feedback.
All reactions