On Mon, 26 Nov 2018 at 16:44, <lary...@gmail.com> wrote:

> Do you mean this
> // This is straight from the https://github.com/uber-go/zap plabook
> func (b *Binlog) LogStructured(msg string, fields ...Field) error
>
> My first goal was to allow drop in replacement for the  log package
> I have to handle 50K queries/s on a mediocre machine. My time budget is
> about ~200 micro/query
>

How many log messages are being produced per query? What are your queries
actually doing? What does the profiler tell you?
If logging is really a bottleneck, you could consider other approaches such
as sampling or just logging less often, or differently.

BTW if you're handling 50K queries per second, that gives you 20µs/query,
not 200 AFAICS.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to