mariadb/mysql-test/suite/perfschema
Monty 0513a4a974 MDEV-38019 Send ok packet to client earlier
Send ok packet earlier for SELECT queries that does not have any updates.
This is done in select_send::send_eof()

Axel's select benchmarks shows that this has a notable speed improvement:
1  Thread:  28% TPS speedup
8  Threads: 23%
64 Threads  6%

This was meassured with t_oltp_point_select With InnoDB running the client
over sockets.

Other things:
- Moved error reporting of LIMIT ROWS EXAMINED from handle_select() to
  check_limit_rows_examined(). This is to ensure that the error is
  reported before send_eof() is called.
- Removed duplicate "Query execution was interrupted" messages for the
  same query. killed_for_exceeding_limit_rows_warning_given was introduced
  for this purpose. We cannot use 'killed' flag in
  killed_for_exceeding_limit_rows() to detect if we already have produced
  a warning as the 'killed' in this case is reset for each union.

Reviewer: Sergei Golubchik <serg@mariadb.org>
2026-01-14 19:07:38 +02:00
..
include mariadb-test: wait on disconnect 2025-07-16 09:14:33 +07:00
r MDEV-38019 Send ok packet to client earlier 2026-01-14 19:07:38 +02:00
t Fixed mtr test that fails with valgrind build and max_session_mem_used 2025-12-20 18:15:24 +02:00
disabled.def Merge branch '10.5' into bb-10.6-release 2022-08-03 12:19:59 +02:00