Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
759cf54a
Commit
759cf54a
authored
Sep 02, 2001
by
monty@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small changes in benchmark suite
parent
825ad1f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
sql-bench/test-insert.sh
sql-bench/test-insert.sh
+6
-10
No files found.
sql-bench/test-insert.sh
View file @
759cf54a
...
...
@@ -1011,12 +1011,13 @@ if ($server->small_rollback_segment())
### Test speed of IN( value list)
###
if
(
$limits
->
{
'
functions
'
})
if
(
$limits
->
{
'
left_outer_join
'
})
{
if
(
$opt_lock_tables
)
{
$sth
=
$dbh
->do
(
"UNLOCK TABLES"
)
||
die
$DBI
::errstr
;
}
print
"
\n
"
;
do_many
(
$dbh
,
$server
->create
(
"bench2"
,
[
"id int NOT NULL"
]
,
[
"primary key (id)"
]))
;
...
...
@@ -1029,13 +1030,8 @@ if ($limits->{'functions'})
die
$DBI
::errstr
;
}
test_where_in
(
"bench1"
,
"bench2"
,
"id"
,1,10
)
;
test_where_in
(
"bench1"
,
"bench2"
,
"id"
,11,
100
)
;
test_where_in
(
"bench1"
,
"bench2"
,
"id"
,11,
min
(
100,
$max_tests
)
)
;
test_where_in
(
"bench1"
,
"bench2"
,
"id"
,101,min
(
1000,
$max_tests
))
;
test_where_in
(
"bench1"
,
"bench2"
,
"id"
,1000,
$max_tests
/2
)
;
if
(
$max_tests
>
1000
)
{
test_where_in
(
"bench1"
,
"bench2"
,
"id"
,
$max_tests
/2+1,
$max_tests
)
;
}
if
(
$opt_lock_tables
)
{
$sth
=
$dbh
->do
(
"UNLOCK TABLES"
)
||
die
$DBI
::errstr
;
...
...
@@ -1647,7 +1643,7 @@ sub check_or_range
}
#
#
Test i
f SELECT ... WHERE id in(value-list)
#
General test o
f SELECT ... WHERE id in(value-list)
#
sub test_where_in
...
...
@@ -1673,10 +1669,10 @@ sub test_where_in
$server
->vacuum
(
1,
\$
dbh,
"bench1"
)
;
}
time_fetch_all_rows
(
"
\n
Testing SELECT ... WHERE id in (
$to
values)"
,
time_fetch_all_rows
(
"Testing SELECT ... WHERE id in (
$to
values)"
,
"select_in"
,
$query
,
$dbh
,
$range_loop_count
)
;
time_fetch_all_rows
(
undef,
"select_join_in"
,
"SELECT
$t1
.* FROM
$t
1
,
$t2
WHERE
$t1
.
$id
=
$t2
.
$id
"
,
"SELECT
$t1
.* FROM
$t
2
left outer join
$t1
on (
$t1
.
$id
=
$t2
.
$id
)
"
,
$dbh
,
$range_loop_count
)
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment