in the doc
Query is 1 MB or larger
$event->{bytes} >= 1_048_576
why not $event->{bytes} >= 1048576? what is ‘_’ mean?
Is 1M the size of sql text? what is the calculation method?
select length(“select * from xx where id=1”) ?
in the doc
Query is 1 MB or larger
$event->{bytes} >= 1_048_576
why not $event->{bytes} >= 1048576? what is ‘_’ mean?
Is 1M the size of sql text? what is the calculation method?
select length(“select * from xx where id=1”) ?
Hello,
In Percona Server, the slow log contains a line with the number of bytes sent like:
# Bytes_sent: 41
That can be used in filters as
$event->{bytes}
Regarding the underscore in numbers: [URL]https://www.perltutorial.org/perl-numbers/[/URL]
Regards
Unanswered | Unsolved | Solved
MySQL, InnoDB, MariaDB and MongoDB are trademarks of their respective owners.
Copyright © 2006 - 2024 Percona LLC. All rights reserved.