MySQL front-end against MySQL
How the MySQL-protocol front-end was compared with MySQL 9.7 through the JDBC driver, and what the decision records say about one process and two.
The MySQL front-end (raftdb-mysql) speaks the MySQL protocol, so applications can use it with stock drivers. Its speed was measured with
a JDBC benchmark through the stock JDBC driver against MySQL 9.7 on the owner's Windows PC. The full records, with every run, are the
decisions D66, D68 and D69 and the benchmark results log (2026-11-11).
Ratios below are "Raft DB speed / MySQL speed" (above 1 means Raft DB is faster).
Ways to run the front-end#
| Form | Meaning |
|---|---|
one process (embed) | the server runs inside the front-end process; the default since D67 |
two processes (raftdb = host:port) | the front-end connects to a separate raftdb-server; the way to put the front-end on another machine than the data |
What the decision records state#
- D66 (2026-11-11): in one process, through the JDBC driver, Raft DB was level with or ahead of MySQL 9.7 on bulk load, key read, range read, join, transaction and writes at one connection. Two processes read at 0.55-0.7x, because every row operation pays a loopback round trip of about 60 us.
- D68: before the work, the owner measured two processes at 1 connection: key read 0.63x (163 against 99 us), range read 0.69x, join 0.43x (457 against 246 us), transaction 0.85x. The work added an allocation cache per thread, a bounded look before a blocking receive and reading a join's tables at once. Its closing statement: two processes level with or ahead of MySQL at one connection on a quiet machine; one process ahead at 16 connections. It lists what stayed behind: two processes at 16 connections (key read 0.74-0.84x, range read 0.82-0.90x), and one connection on a busy PC.
- D69: protocol version 2 (streams, fields instead of rows, one wait for the disk per transaction) and shared connections for reads by key. Before it (D68 build, same tool and PC): two processes, 1 connection: key read 0.96x, range read 0.94x, join 1.13x, transaction 0.75x; at 16 connections key read 0.66x. Its title records the result: two processes ahead of MySQL 9.7 at one connection, near it at sixteen. Sharing reads by key on one connection gave 12 to 27 % more key reads per second at 16 connections than sharing nothing in alternated passes, and the 99th percentile fell from 1,242-2,505 us to 540-753 us.
Conditions that limit these numbers#
- The PC was the owner's desktop and in use all day; the same build measured 22,000 to 42,000 key reads per second at 16 connections in three passes of one run, and MySQL 17,600 to 57,000 over the day (D69). Every figure is one pass of 4 s.
- A statement over the MySQL protocol needs two thread wake-ups whatever the server is; with the row store in a second process it needs two more per round trip to it (D68). On a busy 12-processor PC a wake-up cost about 75 us at 16 connections instead of 25.
- Measured through JDBC only, on Windows, against MySQL 9.7 only.
Not measured#
Other drivers, Linux, MariaDB, and a network between client and server (loopback only).