need a queue to cache logs
Closed this issue · 3 comments
wuzhenda commented
the performance is not good enough,
maybe better to add a queue to cache more logs and write to db once for all.
Jaben commented
The current sink uses PeriodicBatchingSink which does batching and queuing.
If you feel you have a better method, feel free to submit a Pull Request.
Jaben commented
Latest adds the ability to configure the "Insert Options" for MongoDb. So you can turn off Validation and it should be faster:
cfg.ConfigureInsertOptions(s => s.BypassDocumentValidation = true);
Jaben commented
That feature is in v5.2.2 -- closing this issue for now.