File: spj_skew.result

package info (click to toggle)
mysql-8.0 8.0.43-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,273,924 kB
  • sloc: cpp: 4,684,605; ansic: 412,450; pascal: 108,398; java: 83,641; perl: 30,221; cs: 27,067; sql: 26,594; sh: 24,181; python: 21,816; yacc: 17,169; php: 11,522; xml: 7,388; javascript: 7,076; makefile: 2,194; lex: 1,075; awk: 670; asm: 520; objc: 183; ruby: 97; lisp: 86
file content (12 lines) | stat: -rw-r--r-- 534 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
create table test.parent(a int primary key, b int) engine=ndb;
create table test.child(b int primary key, c int) engine=ndb;
insert into test.parent values
(1,2),(2,3),(3,4),(4,5),(5,5),(6,7),(7,8),(8,9);
insert into test.child values
(1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9);
create temporary table counters_at_startup
select * from ndbinfo.counters
where block_name="DBSPJ";

Report (and fail) if there are too much skew in 'TABLE_SCANS_RECEIVED':
Skewed SPJ load	counter_name	min(cnt.val-old.val)	max(cnt.val-old.val)