Skip to content
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

[stats] stats table name sensitivity tests #8684

Merged
merged 13 commits into from
Dec 23, 2024

Conversation

max-hoffman
Copy link
Contributor

@max-hoffman max-hoffman commented Dec 16, 2024

Fix bugs related to table casing, loading deleted tables, and making sure we're using the appropriate branch root when updating statistics.

@coffeegoddd
Copy link
Contributor

@max-hoffman DOLT

comparing_percentages
100.000000 to 100.000000
version result total
75786e6 ok 5937457
version total_tests
75786e6 5937457
correctness_percentage
100.0

@coffeegoddd
Copy link
Contributor

@coffeegoddd DOLT

comparing_percentages
100.000000 to 100.000000
version result total
cb72313 ok 5937457
version total_tests
cb72313 5937457
correctness_percentage
100.0

@coffeegoddd
Copy link
Contributor

@max-hoffman DOLT

comparing_percentages
100.000000 to 100.000000
version result total
a6a9e09 ok 5937457
version total_tests
a6a9e09 5937457
correctness_percentage
100.0

@coffeegoddd
Copy link
Contributor

@max-hoffman DOLT

comparing_percentages
100.000000 to 100.000000
version result total
38a4980 ok 5937457
version total_tests
38a4980 5937457
correctness_percentage
100.0

@coffeegoddd
Copy link
Contributor

@max-hoffman DOLT

comparing_percentages
100.000000 to 100.000000
version result total
b46d3be ok 5937457
version total_tests
b46d3be 5937457
correctness_percentage
100.0

@max-hoffman max-hoffman requested a review from zachmu December 18, 2024 20:01
Copy link
Contributor

@nicktobey nicktobey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, one minor nit in the tests

@coffeegoddd
Copy link
Contributor

@max-hoffman DOLT

comparing_percentages
100.000000 to 100.000000
version result total
1ea8d24 ok 5937457
version total_tests
1ea8d24 5937457
correctness_percentage
100.0

@max-hoffman max-hoffman merged commit d98baaf into main Dec 23, 2024
20 of 21 checks passed
@max-hoffman max-hoffman deleted the max/stats-table-sensitivity branch December 23, 2024 23:34
Copy link

@coffeegoddd DOLT

test_name detail row_cnt sorted mysql_time sql_mult cli_mult
batching LOAD DATA 10000 1 0.06 1.33
batching batch sql 10000 1 0.1 1.2
batching by line sql 10000 1 0.1 1.1
blob 1 blob 200000 1 0.88 3.8 4.49
blob 2 blobs 200000 1 0.87 4.31 4.72
blob no blob 200000 1 0.92 2.29 2.62
col type datetime 200000 1 0.83 2.29 2.48
col type varchar 200000 1 0.72 3.1 3.5
config width 2 cols 200000 1 0.83 2.29 2.48
config width 32 cols 200000 1 1.83 2.02 2.76
config width 8 cols 200000 1 0.99 2.22 2.6
pk type float 200000 1 0.8 2.43 2.63
pk type int 200000 1 0.87 2.3 2.38
pk type varchar 200000 1 1.43 1.74 2.03
row count 1.6mm 1600000 1 5.57 2.88 2.68
row count 400k 400000 1 1.49 2.58 2.6
row count 800k 800000 1 2.79 2.82 2.72
secondary index four index 200000 1 3.43 1.42 1.28
secondary index no secondary 200000 1 0.94 2.21 2.52
secondary index one index 200000 1 1.1 2.45 2.53
secondary index two index 200000 1 1.95 1.76 1.79
sorting shuffled 1mm 1000000 0 5.02 2.75 2.71
sorting sorted 1mm 1000000 1 4.97 2.76 2.73

Copy link

@coffeegoddd DOLT

name detail mean_mult
dolt_blame_basic system table 1.11
dolt_blame_commit_filter system table 2.85
dolt_commit_ancestors_commit_filter system table 0.64
dolt_commits_commit_filter system table 0.95
dolt_diff_log_join_from_commit system table 2.73
dolt_diff_log_join_to_commit system table 2.64
dolt_diff_table_from_commit_filter system table 1.16
dolt_diff_table_to_commit_filter system table 1.14
dolt_diffs_commit_filter system table 1
dolt_history_commit_filter system table 1.32
dolt_log_commit_filter system table 1.11

Copy link

@coffeegoddd DOLT

name add_cnt delete_cnt update_cnt latency
adds_only 60000 0 0 1
adds_updates_deletes 60000 60000 60000 4.04
deletes_only 0 60000 0 2.18
updates_only 0 0 60000 2.71

Copy link

@coffeegoddd DOLT

test_name detail row_cnt sorted mysql_time sql_mult cli_mult
batching LOAD DATA 10000 1 0.07 1.14
batching batch sql 10000 1 0.1 1.2
batching by line sql 10000 1 0.09 1.44
blob 1 blob 200000 1 0.91 3.71 4.46
blob 2 blobs 200000 1 0.88 4.36 4.74
blob no blob 200000 1 1.07 1.99 2.23
col type datetime 200000 1 0.82 2.34 2.55
col type varchar 200000 1 0.77 3.04 3.36
config width 2 cols 200000 1 0.84 2.29 2.5
config width 32 cols 200000 1 1.83 2.21 2.77
config width 8 cols 200000 1 0.93 2.55 2.75
pk type float 200000 1 2.14 0.92 0.99
pk type int 200000 1 0.8 2.4 2.59
pk type varchar 200000 1 1.49 1.68 1.78
row count 1.6mm 1600000 1 5.69 2.8 2.65
row count 400k 400000 1 1.44 2.7 2.75
row count 800k 800000 1 2.85 2.78 2.67
secondary index four index 200000 1 3.51 1.4 1.28
secondary index no secondary 200000 1 0.96 2.21 2.53
secondary index one index 200000 1 1.16 2.32 2.43
secondary index two index 200000 1 2.01 1.71 1.77
sorting shuffled 1mm 1000000 0 5.42 2.6 2.49
sorting sorted 1mm 1000000 1 5.31 2.66 2.54

Copy link

@coffeegoddd DOLT

name detail mean_mult
dolt_blame_basic system table 1.05
dolt_blame_commit_filter system table 2.7
dolt_commit_ancestors_commit_filter system table 0.59
dolt_commits_commit_filter system table 1.05
dolt_diff_log_join_from_commit system table 2.69
dolt_diff_log_join_to_commit system table 2.64
dolt_diff_table_from_commit_filter system table 1.17
dolt_diff_table_to_commit_filter system table 1.14
dolt_diffs_commit_filter system table 0.97
dolt_history_commit_filter system table 1.29
dolt_log_commit_filter system table 1.11

Copy link

@coffeegoddd DOLT

name add_cnt delete_cnt update_cnt latency
adds_only 60000 0 0 0.98
adds_updates_deletes 60000 60000 60000 4.16
deletes_only 0 60000 0 2.19
updates_only 0 0 60000 2.73

Copy link

@coffeegoddd DOLT

test_name detail row_cnt sorted mysql_time sql_mult cli_mult
batching LOAD DATA 10000 1 0.05 1.8
batching batch sql 10000 1 0.08 1.5
batching by line sql 10000 1 0.09 1.33
blob 1 blob 200000 1 0.88 3.74 4.43
blob 2 blobs 200000 1 0.9 4.19 4.58
blob no blob 200000 1 0.96 2.18 2.48
col type datetime 200000 1 0.81 2.35 2.54
col type varchar 200000 1 0.75 3.01 3.25
config width 2 cols 200000 1 0.9 2.14 2.3
config width 32 cols 200000 1 1.86 1.99 2.7
config width 8 cols 200000 1 0.97 2.29 2.6
pk type float 200000 1 2.17 0.88 0.97
pk type int 200000 1 0.83 2.55 2.49
pk type varchar 200000 1 1.53 1.63 1.75
row count 1.6mm 1600000 1 5.5 2.89 2.71
row count 400k 400000 1 1.56 2.51 2.48
row count 800k 800000 1 2.81 2.82 2.68
secondary index four index 200000 1 3.45 1.42 1.27
secondary index no secondary 200000 1 0.9 2.36 2.64
secondary index one index 200000 1 1.12 2.36 2.51
secondary index two index 200000 1 1.9 1.82 1.86
sorting shuffled 1mm 1000000 0 4.86 2.82 2.77
sorting sorted 1mm 1000000 1 4.82 2.85 2.81

Copy link

@coffeegoddd DOLT

name detail mean_mult
dolt_blame_basic system table 1.11
dolt_blame_commit_filter system table 2.72
dolt_commit_ancestors_commit_filter system table 0.61
dolt_commits_commit_filter system table 1.05
dolt_diff_log_join_from_commit system table 2.75
dolt_diff_log_join_to_commit system table 2.7
dolt_diff_table_from_commit_filter system table 1.16
dolt_diff_table_to_commit_filter system table 1.21
dolt_diffs_commit_filter system table 0.97
dolt_history_commit_filter system table 1.46
dolt_log_commit_filter system table 1.11

Copy link

@coffeegoddd DOLT

name add_cnt delete_cnt update_cnt latency
adds_only 60000 0 0 1.02
adds_updates_deletes 60000 60000 60000 4.12
deletes_only 0 60000 0 2.15
updates_only 0 0 60000 2.73

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants