Skip to content

chore: improve DB flushing#13620

Merged
jif-oai merged 7 commits intomainfrom
jif/better-db-flush
Mar 6, 2026
Merged

chore: improve DB flushing#13620
jif-oai merged 7 commits intomainfrom
jif/better-db-flush

Conversation

@jif-oai
Copy link
Copy Markdown
Collaborator

@jif-oai jif-oai commented Mar 5, 2026

This branch:

  • Avoid flushing DB when not necessary
  • Filter events for which we perfom an upsert into the DB
  • Add a dedicated update function of the thread:updated_at that is lighter

This should significantly reduce the DB lock contention. If it is not sufficient, we can de-sync the flush of the DB for updated_at

@jif-oai
Copy link
Copy Markdown
Collaborator Author

jif-oai commented Mar 6, 2026

@codex review

1 similar comment
@jif-oai
Copy link
Copy Markdown
Collaborator Author

jif-oai commented Mar 6, 2026

@codex review

Copy link
Copy Markdown
Contributor

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1da0c25b0a

ℹ️ 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".

@jif-oai
Copy link
Copy Markdown
Collaborator Author

jif-oai commented Mar 6, 2026

@codex review

1 similar comment
@jif-oai
Copy link
Copy Markdown
Collaborator Author

jif-oai commented Mar 6, 2026

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown
Contributor

Codex Review: Didn't find any major issues. Delightful!

ℹ️ 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".

@jif-oai
Copy link
Copy Markdown
Collaborator Author

jif-oai commented Mar 6, 2026

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown
Contributor

Codex Review: Didn't find any major issues. Delightful!

ℹ️ 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".

@jif-oai jif-oai merged commit 0e41a5c into main Mar 6, 2026
49 of 52 checks passed
@jif-oai jif-oai deleted the jif/better-db-flush branch March 6, 2026 18:58
@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

2 participants