-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Data scope: complete, consistent, and tested (#4)
- Loading branch information
1 parent
e72f5b0
commit 6fb8c7f
Showing
65 changed files
with
5,630 additions
and
568 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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,21 @@ | ||
// Copyright 2024 Block, Inc. | ||
|
||
package aws | ||
|
||
import ( | ||
"testing" | ||
) | ||
|
||
func TestRDSCert(t *testing.T) { | ||
var err any | ||
f := func() { | ||
defer func() { | ||
err = recover() | ||
}() | ||
RegisterRDSCA() // panics on any error | ||
} | ||
f() | ||
if err != nil { | ||
t.Errorf("RegisterRDSCA paniced: %v", err) | ||
} | ||
} |
This file contains 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 @@ | ||
# https://square.github.io/finch/benchmark/examples/#intro | ||
|
||
stage: | ||
runtime: 10s | ||
workload: | ||
|
This file contains 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 @@ | ||
# https://square.github.io/finch/benchmark/examples/#intro | ||
|
||
stage: | ||
runtime: 20s | ||
workload: | ||
|
This file contains 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,6 @@ | ||
CREATE TABLE t1 ( | ||
id INT UNSIGNED NOT NULL PRIMARY KEY, | ||
n INT NOT NULL, | ||
c VARCHAR(100) NOT NULL, | ||
INDEX (n) | ||
) |
This file contains 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 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,17 @@ | ||
# https://bugs.mysql.com/bug.php?id=97001 | ||
# https://blog.jcole.us/2019/09/30/reconsidering-access-paths-for-index-ordering-a-dangerous-optimization-and-a-fix/ | ||
# https://hackmysql.com/post/infamous-order-by-limit-query-optimizer-bug/ | ||
|
||
stage: | ||
trx: | ||
- file: shift-rows.sql # UPDATE t SET id=id+1000000 WHERE other_id = 555 | ||
- file: get-1-row.sql | ||
workload: | ||
- group: shift | ||
trx: [shift-rows.sql] | ||
iter: 1 | ||
disable-stats: true | ||
|
||
- group: after | ||
trx: [get-1-row.sql] | ||
iter: 2 |
This file contains 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,9 @@ | ||
# https://bugs.mysql.com/bug.php?id=97001 | ||
# https://blog.jcole.us/2019/09/30/reconsidering-access-paths-for-index-ordering-a-dangerous-optimization-and-a-fix/ | ||
# https://hackmysql.com/post/infamous-order-by-limit-query-optimizer-bug/ | ||
|
||
stage: | ||
trx: | ||
- file: get-1-row.sql | ||
workload: | ||
- iter: 1000 |
This file contains 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 @@ | ||
SELECT non_covered_column FROM t WHERE other_id = 555 ORDER BY id ASC LIMIT 1 |
This file contains 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,2 @@ | ||
-- prepare | ||
INSERT INTO t (id, other_id, covered_column, non_covered_column) VALUES /*!csv 5000 (@n(), @n % 1000, @n, @n)*/ |
This file contains 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,8 @@ | ||
CREATE TABLE t ( | ||
id BIGINT NOT NULL, | ||
other_id BIGINT NOT NULL, | ||
covered_column VARCHAR(50) NOT NULL, | ||
non_covered_column VARCHAR(50) NOT NULL, | ||
PRIMARY KEY (id), | ||
INDEX index_other_id_covered_column (other_id, covered_column) | ||
) |
This file contains 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,17 @@ | ||
# https://bugs.mysql.com/bug.php?id=97001 | ||
# https://blog.jcole.us/2019/09/30/reconsidering-access-paths-for-index-ordering-a-dangerous-optimization-and-a-fix/ | ||
# https://hackmysql.com/post/infamous-order-by-limit-query-optimizer-bug/ | ||
|
||
stage: | ||
trx: | ||
- file: schema.sql | ||
- file: insert-rows.sql | ||
data: | ||
n: | ||
generator: auto-inc | ||
scope: client-group | ||
workload: | ||
- trx: [schema.sql] | ||
- trx: [insert-rows.sql] # 5k rows/insert | ||
iter-clients: 200 # x 200 inserts = 1,000,000 rows | ||
clients: 4 |
This file contains 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 @@ | ||
UPDATE t SET id=id+1000000 WHERE other_id = 555 |
This file contains 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 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 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 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 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,4 @@ | ||
# https://square.github.io/finch/benchmark/examples/#xfer | ||
|
||
stage: | ||
name: xfer | ||
|
Oops, something went wrong.