Skip to content

Conversation

@arekborucki
Copy link
Collaborator

@arekborucki arekborucki commented Jan 29, 2026

Add MongoDB read preference per collection to optimize read distribution across replica set. Collections like conversations, users, sessions, settings, sharedConversations, and migrationResults remain on primary to ensure read-after-write consistency. Read collections like assistants, assistantStats, conversationStats, reports, and tools are configured with secondaryPreferred to offload read traffic from primary

@arekborucki arekborucki requested a review from gary149 January 29, 2026 13:41
Copy link

@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: 6f3adc16ca

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@arekborucki arekborucki merged commit 37d12db into main Jan 29, 2026
6 checks passed
@arekborucki arekborucki deleted the feature/fix-mongodb-performance-issues branch January 29, 2026 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants