Skip to content
This repository has been archived by the owner on Dec 22, 2020. It is now read-only.

Karl-batch-inserts-fixes #137

Closed
wants to merge 46 commits into from
Closed

Karl-batch-inserts-fixes #137

wants to merge 46 commits into from

Conversation

pmendozav
Copy link

Based on this pull request #68 and suggestions I added some stuffs:

  • I enabled the mongoriver batch mode to save manually once batch insert is completed.
  • I commented DatabaseError handling because in the original branch never enter when there are duplicated keys during insertion.
  • I added an exception to handle SIGTERM, SIGKILL signals

Karl-Aksel Puulmann and others added 30 commits September 18, 2014 16:29
Basic strategy is to batch consecutive inserts together per namespace. Batch gets saved whenever:
- An update or delete is done to the same namespace as the insert
- After streaming (up to) 1000 updates from oplog, time from last batch update is larger than 5 seconds.
- More than a threshold of updates have happened in this namespace.
- Program is exiting/streaming stops.
@pmendozav pmendozav mentioned this pull request Apr 7, 2020
@pmendozav pmendozav closed this Jul 20, 2020
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