403Webshell
Server IP : 104.21.38.3  /  Your IP : 172.70.142.154
Web Server : Apache
System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64
User : www ( 1000)
PHP Version : 7.4.33
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /www/server/mysql/src/mysql-test/suite/ndb/t/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/server/mysql/src/mysql-test/suite/ndb/t/ndb_many_fragments.test
# The include statement below is a temp one for tests that are yet to
#be ported to run with InnoDB,
#but needs to be kept for tests that would need MyISAM in future.
--source include/force_myisam_default.inc

--source include/have_ndb.inc
#
# Tests of table partotioned across a large number
# of fragments. Intended to test possible issues
# with large signal fanout, breaking the '1::4 rule'
#


create table parent(a int primary key, b int) engine=ndb;
create table child(a int, b int, primary key(a,b)) engine=ndb;

alter table parent partition by key(a) partitions 128;
alter table child  partition by key(a,b) partitions 128;

insert into parent values (1,1), (2,2), (3,3), (4,4);
insert into parent select a+4, b+4 from parent;
insert into parent select a+8, b+8 from parent;
insert into parent select a+16, b+16 from parent;
insert into parent select a+32, b+32 from parent;
insert into parent select a+64, b+64 from parent;
insert into parent select a+128, b+128 from parent;

insert into child select * from parent;
analyze table parent, child;

let $query =
 select straight_join count(*) from parent
 join child as c1 on c1.a = parent.b
 join child as c2 on c2.a = parent.b
 join child as c3 on c3.a = parent.b
 join child as c4 on c4.a = parent.b
 join child as c5 on c5.a = parent.b
 join child as c6 on c6.a = parent.b
 join child as c7 on c7.a = parent.b
 join child as c8 on c8.a = parent.b
 join child as c9 on c9.a = parent.b
 join child as c10 on c10.a = parent.b
 join child as c11 on c11.a = parent.b
 join child as c12 on c12.a = parent.b
 join child as c13 on c13.a = parent.b
 join child as c14 on c14.a = parent.b
 join child as c15 on c15.a = parent.b
 join child as c16 on c16.a = parent.b
 where parent.b < 2
;

set ndb_join_pushdown = false;
--replace_column 10 # 11 #
eval explain $query;
eval $query;

set ndb_join_pushdown = true;
--replace_column 10 # 11 #
eval explain $query;
eval $query;

drop table parent, child;

Youez - 2016 - github.com/yon3zu
LinuXploit