Skip to content

Move sqlite logs to a dedicated database - #13772

Merged
charley-oai merged 2 commits into
mainfrom
separate-sqlite-log-db
Mar 6, 2026
Merged

charley-oai merged 2 commits into
mainfrom
separate-sqlite-log-db

Conversation

@charley-oai

@charley-oai charley-oai commented Mar 6, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • move sqlite log reads and writes onto a dedicated logs_1.sqlite database to reduce lock contention with the main state DB
  • add a dedicated logs migrator and route codex-state-logs to the new database path
  • leave the old logs table in the existing state DB untouched for now

Testing

  • just fmt
  • cargo test -p codex-state

charley-oai and others added 2 commits March 6, 2026 10:02
Route sqlite log reads and writes through a separate logs database so the main state database sees less lock contention.

Add a dedicated logs migrator and point the logs client at the new database path.

Co-authored-by: Codex <[email protected]>
Use plural logs naming for the dedicated logs database constants, migrator, and migration directory.

Co-authored-by: Codex <[email protected]>
@charley-oai

Copy link
Copy Markdown
Contributor Author

@codex review this

@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review: Didn't find any major issues. What shall we delve into next?

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@charley-oai
charley-oai merged commit 4e6c619 into main Mar 6, 2026
25 of 31 checks passed
@charley-oai
charley-oai deleted the separate-sqlite-log-db branch March 6, 2026 18:54
@github-actions github-actions Bot locked and limited conversation to collaborators Mar 6, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants