Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
2Activity
0 of .
Results for:
No results containing your search query
P. 1
Batched Key Access: a significant Speed-up for Join Queries

Batched Key Access: a significant Speed-up for Join Queries

Ratings:

4.5

(2)
|Views: 276|Likes:
Published by Oleksiy Kovyrin

More info:

Published by: Oleksiy Kovyrin on Apr 21, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

05/09/2014

pdf

text

original

 
Presented by,MySQL AB® & O’Reilly Media, Inc.
Batched Key Access:a significant Speed-upfor Join Queries
Igor Babaevigor@mysql.com
 
Getting Started BKA: Inroduction
Where to find the stuff (source, binaries)?http://forge.mysql.com/wiki/Batched_Key_Access Cloned from mysql-6.0-ndb that is currently in sync with mysql-6.0What is a “significant speed-up” for join queries?Depends on:
database size
memory available on the server 
number of concurrent connections
type of the join queriesDatabase: DBT3 (TPC-H) : configuration6 001 215 lineitemrecordsOther tables:part(200 000),partsupp(800 000)
 
[ENGINE= MyISAM ]  <flush> 
|
20132
|
1 row in set (4 min 15.39 sec) mysql> SELECT COUNT(*)FROM part, lineitem  WHERE  1 row in set (0.44 sec)
Getting Started BKA:Exercise1
 mysql> SELECT COUNT(*)FROM part, lineitem    WHEREl_partkey=p_partkey ANDp_retailprice>2050   ANDl_discount>0.04;
 mysql> EXPLAIN SELECT COUNT(*)FROM part, lineitem  WHEREl_partkey=p_partkey AND  | id | select_type | table | type |…| ref | rows | Extra |+----+-------------+----------+------+…+----------------------------+--------+-------------+| 1 | SIMPLE | part | ALL|…| NULL |200000| Using where | | 1 | SIMPLE | lineitem | ref |…| dbt3_myisam.part.p_partkey |30| Using where |

Activity (2)

You've already reviewed this. Edit your review.
1 thousand reads
1 hundred reads

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->