-
Notifications
You must be signed in to change notification settings - Fork 293
mariadb-duckdb: switch to Parquet ingestion, remove PRIMARY KEY, add 2026-07-13 results #986
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
thevar1able
merged 1 commit into
ClickHouse:main
from
mariadb-AlekseiBukhalov:update-mariadb-duckdb-no-pk
Jul 15, 2026
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| #!/bin/bash | ||
| export BENCH_DOWNLOAD_SCRIPT="download-hits-tsv" | ||
| export BENCH_DOWNLOAD_SCRIPT="download-hits-parquet-single" | ||
| export BENCH_DURABLE=yes | ||
| export BENCH_RESTARTABLE=yes | ||
| exec ../lib/benchmark-common.sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,59 @@ | ||
| { | ||
| "system": "MariaDB (DuckDB)", | ||
| "date": "2026-07-13", | ||
| "machine": "c6a.4xlarge", | ||
| "cluster_size": 1, | ||
| "proprietary": "no", | ||
| "hardware": "cpu", | ||
| "tuned": "no", | ||
| "tags": ["C++", "column-oriented", "MySQL compatible", "DuckDB derivative"], | ||
| "load_time": 100.378, | ||
| "data_size": 20458778624, | ||
| "concurrent_qps": 1.530, | ||
| "concurrent_error_ratio": 0.000, | ||
| "result": [ | ||
| [0.039, 0.002, 0.001], | ||
| [0.145, 0.005, 0.005], | ||
| [0.245, 0.021, 0.021], | ||
| [0.316, 0.032, 0.032], | ||
| [0.503, 0.301, 0.299], | ||
| [1.004, 0.258, 0.261], | ||
| [0.114, 0.003, 0.003], | ||
| [0.163, 0.007, 0.007], | ||
| [0.900, 0.378, 0.375], | ||
| [1.613, 0.528, 0.525], | ||
| [0.541, 0.072, 0.071], | ||
| [0.782, 0.082, 0.080], | ||
| [0.986, 0.333, 0.332], | ||
| [2.308, 0.655, 0.677], | ||
| [1.391, 0.382, 0.386], | ||
| [0.548, 0.341, 0.340], | ||
| [2.219, 0.779, 0.790], | ||
| [1.977, 0.524, 0.532], | ||
| [4.615, 2.761, 2.781], | ||
| [0.221, 0.005, 0.005], | ||
| [10.688, 0.484, 0.485], | ||
| [12.324, 0.500, 0.498], | ||
| [14.490, 1.657, 2.319], | ||
| [0.596, 0.068, 0.066], | ||
| [0.216, 0.021, 0.024], | ||
| [0.922, 0.103, 0.102], | ||
| [0.232, 0.021, 0.020], | ||
| [10.865, 0.404, 0.405], | ||
| [8.675, 6.651, 6.601], | ||
| [0.201, 0.027, 0.026], | ||
| [2.796, 0.287, 0.285], | ||
| [5.822, 0.373, 0.380], | ||
| [5.005, 1.663, 1.750], | ||
| [11.170, 1.654, 1.649], | ||
| [11.192, 1.852, 1.827], | ||
| [0.610, 0.428, 0.431], | ||
| [0.134, 0.029, 0.026], | ||
| [0.122, 0.010, 0.009], | ||
| [0.121, 0.015, 0.015], | ||
| [0.229, 0.054, 0.064], | ||
| [0.136, 0.006, 0.006], | ||
| [0.148, 0.006, 0.006], | ||
| [0.238, 0.150, 0.154] | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,59 @@ | ||
| { | ||
| "system": "MariaDB (DuckDB)", | ||
| "date": "2026-07-13", | ||
| "machine": "c6a.metal", | ||
| "cluster_size": 1, | ||
| "proprietary": "no", | ||
| "hardware": "cpu", | ||
| "tuned": "no", | ||
| "tags": ["C++", "column-oriented", "MySQL compatible", "DuckDB derivative"], | ||
| "load_time": 125.173, | ||
| "data_size": 20562063360, | ||
| "concurrent_qps": 13.947, | ||
| "concurrent_error_ratio": 0.000, | ||
| "result": [ | ||
| [0.035, 0.002, 0.002], | ||
| [0.099, 0.005, 0.004], | ||
| [0.140, 0.006, 0.006], | ||
| [0.523, 0.008, 0.007], | ||
| [0.556, 0.067, 0.064], | ||
| [1.663, 0.055, 0.054], | ||
| [0.089, 0.002, 0.002], | ||
| [0.094, 0.006, 0.006], | ||
| [1.406, 0.080, 0.077], | ||
| [2.424, 0.117, 0.115], | ||
| [1.104, 0.025, 0.024], | ||
| [1.449, 0.026, 0.026], | ||
| [1.673, 0.063, 0.059], | ||
| [3.163, 0.116, 0.108], | ||
| [2.226, 0.068, 0.065], | ||
| [0.574, 0.073, 0.074], | ||
| [3.156, 0.147, 0.139], | ||
| [3.177, 0.146, 0.147], | ||
| [5.910, 0.446, 0.445], | ||
| [0.105, 0.006, 0.005], | ||
| [15.024, 0.087, 0.082], | ||
| [17.363, 0.082, 0.077], | ||
| [17.764, 0.695, 0.666], | ||
| [1.129, 0.028, 0.027], | ||
| [0.180, 0.014, 0.012], | ||
| [1.661, 0.028, 0.041], | ||
| [0.170, 0.014, 0.011], | ||
| [15.271, 0.074, 0.067], | ||
| [11.911, 1.083, 1.059], | ||
| [0.103, 0.014, 0.012], | ||
| [4.245, 0.059, 0.059], | ||
| [7.893, 0.135, 0.164], | ||
| [5.652, 0.364, 0.360], | ||
| [15.121, 0.311, 0.329], | ||
| [15.130, 0.321, 0.327], | ||
| [0.205, 0.101, 0.100], | ||
| [0.106, 0.026, 0.032], | ||
| [0.083, 0.008, 0.009], | ||
| [0.125, 0.013, 0.012], | ||
| [0.199, 0.053, 0.052], | ||
| [0.108, 0.008, 0.006], | ||
| [0.111, 0.008, 0.006], | ||
| [0.207, 0.130, 0.130] | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,22 @@ | ||
| #!/bin/bash | ||
| set -eu | ||
|
|
||
| if sudo mariadb -e "SELECT 1" >/dev/null 2>&1; then | ||
| exit 0 | ||
| if ! sudo mariadb -e "SELECT 1" >/dev/null 2>&1; then | ||
| /bin/sh /usr/bin/mariadbd-safe --datadir=/var/lib/mysql &>/dev/null & | ||
| # Wait up to 30s for the server to accept connections. | ||
| for _ in $(seq 1 30); do | ||
| sudo mariadb -e "SELECT 1" >/dev/null 2>&1 && break | ||
| sleep 1 | ||
| done | ||
| if ! sudo mariadb -e "SELECT 1" >/dev/null 2>&1; then | ||
| echo "mariadbd-safe did not accept connections within 30s" >&2 | ||
| exit 1 | ||
| fi | ||
| fi | ||
|
|
||
| # Cap at physical core count on HT machines: above nproc/2 DuckDB gains no | ||
| # throughput from hyperthreaded siblings but pays extra scheduling overhead. | ||
| CORES=$(nproc) | ||
| if [ "$CORES" -gt 32 ]; then | ||
| sudo mariadb -e "SET GLOBAL duckdb_max_threads = $((CORES / 2))" | ||
| fi | ||
| sudo systemctl start mariadb | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| #!/bin/bash | ||
| sudo systemctl stop mariadb || true | ||
| /usr/bin/mariadb-admin shutdown |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To keep in mind for future PRs:
lib/benchmark-common.sh(the benchmark driver) implements similar timeout/wait logic already, see its functionbench_start. It's fine to only start the database in this script.