Closed EinKrebs closed 2 years ago
Could you please add more comments what the patch does?
We should perhaps also document this in config so people know how that the batch size is variable
@pavolloffay As far as I can see, writer.writeBatch is safe to use concurrently, 'cause only db and logger are shared between its two calls. Sql.Db is safe for concurrent use for sure. For go-hclog I couldn't find any info, but I suppose it's safe too.
Which problem is this PR solving?
Some points in #75.
Short description of the changes