Server IP : 185.86.78.101 / Your IP : 216.73.216.124 Web Server : Apache System : Linux 675867-vds-valikoshka1996.gmhost.pp.ua 5.4.0-150-generic #167-Ubuntu SMP Mon May 15 17:35:05 UTC 2023 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 : OFF Directory : /www/server/mysql/mysql-test/t/ |
Upload File : |
# 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 # Tests for eq_range_index_dive_limit variable: # test that index dives are not done when index # statistics is requested --source include/have_debug.inc SET eq_range_index_dive_limit=default; SELECT @@eq_range_index_dive_limit; CREATE TABLE t1 ( /* Field names reflect value(rowid) distribution, st=STairs, swt= SaWTooth */ st_a int, swt1a int, swt2a int, st_b int, swt1b int, swt2b int, key sta_swt12a(st_a,swt1a,swt2a), key sta_swt1a(st_a,swt1a), key sta_swt2a(st_a,swt2a), key sta_swt21a(st_a,swt2a,swt1a), key st_a(st_a), key stb_swt1a_2b(st_b,swt1b,swt2a), key stb_swt1b(st_b,swt1b), key st_b(st_b) ) ; ALTER TABLE t1 DISABLE KEYS; --disable_query_log --echo # --echo # Printing of many insert into t1 disabled. --echo # let $1=3; while ($1) { let $2=3; while ($2) { let $3=3; while ($3) { let $equal_records=30; while ($equal_records) { eval insert into t1 select $1, $2, $3, $1 ,$2, $3; dec $equal_records; } dec $3; } dec $2; } dec $1; } --enable_query_log ALTER TABLE t1 ENABLE KEYS; ANALYZE TABLE t1; --echo # --echo # Run index_merge queries two times: 1) with index dives --echo # 2) with index statistics --echo # let $iterations=2; while ($iterations) { dec $iterations; --echo explain select * from t1 where st_a=1 and swt1a=1 and swt2a=1 and st_b=1 and swt1b=1 and swt2b=1 limit 5; select * from t1 where st_a=1 and swt1a=1 and swt2a=1 and st_b=1 and swt1b=1 and swt2b=1 limit 5; --echo explain select * from t1 where st_a=1 and swt1a=1 and swt2a=1 and st_b=1 and swt1b=1 limit 5; select * from t1 where st_a=1 and swt1a=1 and swt2a=1 and st_b=1 and swt1b=1 limit 5; --echo explain select * from t1 where st_a=1 and swt1a=1 and st_b=1 and swt1b=1 and swt1b=1 limit 5; select * from t1 where st_a=1 and swt1a=1 and st_b=1 and swt1b=1 and swt1b=1 limit 5; --echo SET eq_range_index_dive_limit=1; SET SESSION DEBUG="+d,crash_records_in_range"; } DROP TABLE t1;