Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add xent_collection_admin #114

Merged
merged 9 commits into from
Jun 20, 2024
Merged

Add xent_collection_admin #114

merged 9 commits into from
Jun 20, 2024

Conversation

yuema137
Copy link
Contributor

In the past, we used secondaryPreferred in the pymongo interface for all purposes, which was not reasonable. A better practice is to:

  • Use secondary only for normal read-only operations to avoid crushing the primary when the connection demand is high
  • When writing to the database, we should use xent_collection_admin, which only connects to the primary. Connection to secondaries is unnecessary here as there is no writing option for those.

@yuema137 yuema137 merged commit f03ae35 into master Jun 20, 2024
1 check passed
@yuema137 yuema137 deleted the add_admin_collection branch June 20, 2024 17:08
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.

1 participant