MariaDB CONNECTION_ID() Explained

In MariaDB, every thread (including each event) has an ID that is unique among the set of currently connected clients. The CONNECTION_ID() function is a built-in function that returns the connection ID (thread ID) for the connection.

Read more

MariaDB BENCHMARK() Explained

In MariaDB, BENCHMARK() is a built-in function that executes an expression a specified number of times.

It can be used to time how quickly MariaDB processes the expression.

The result is always 0. The function is intended to be used within the mysql command line tool, which reports query execution times.

Read more