-
Notifications
You must be signed in to change notification settings - Fork 55
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
feat(DB): Introduce DB write concern env var for createStatements (LLC-2389) #896
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #896 +/- ##
==========================================
- Coverage 93.92% 93.91% -0.01%
==========================================
Files 655 655
Lines 7146 7152 +6
Branches 795 796 +1
==========================================
+ Hits 6712 6717 +5
Misses 314 314
- Partials 120 121 +1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
|
||
const WRITE_CONCERN_DEFAULT = 3; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MongoDB's default is majority
and here our default is 3. This would create behavioural change immediately upon deployment.
@@ -22,7 +26,11 @@ export default (config: FacadeConfig): Signature => { | |||
}); | |||
|
|||
const collection = (await config.db()).collection(STATEMENTS_COLLECTION_NAME); | |||
await collection.insertMany(documents); | |||
console.time('STATEMENT INSERTION'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Logs are for measurements in the QA process only and will be removed
Closes LLC-2389.