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
[Doc] Add *MongoDB sink connector guide* #5289
Conversation
@tuteng could you please help review? Thank you |
"batchSize": "2", | ||
"batchTimeMs": "500" | ||
} | ||
``` |
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.
It is best to add a port number to mongo's link address, as shown below:
"mongoUri": "mongodb://localhost:27017",
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.
OK, I've updated
site2/docs/io-mongo-sink.md
Outdated
| `database` | String| true| " " (empty string)| The database name to which the collection belongs. | | ||
| `collection` | String| true| " " (empty string)| The collection name to which the connector writes messages. | | ||
| `batchSize` | int|false|DEFAULT_BATCH_SIZE | The batch size of writing messages to collections. | | ||
| `batchTimeMs` |long|false|DEFAULT_BATCH_TIME_MS| The batch operation interval in milliseconds. | |
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.
Using 100
instead of DEFAULT_BATCH_SIZE looks clearer
Using 1000
instead of DEFAULT_BATCH_TIME_MS.
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.
OK, I've updated
Fix #5015