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
New Subquery Optimizations in MySQL 6 0 Presentation

New Subquery Optimizations in MySQL 6 0 Presentation

Ratings: (0)|Views: 78|Likes:
Published by yejr

More info:

Published by: yejr on Apr 27, 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

02/18/2014

pdf

text

original

 
Presented by,MySQL AB® & O’Reilly Media, Inc.
New subqueryoptimizationsin MySQL 6.0
Sergey Petruniasergefp@mysql.com
 
Background: subquery processing before 6.0
FROM subqueries are pre-materialized (early)
 
Scalar-context subqueries use straightforwardevaluation
 
Predicate subqueries
May perform two kinds of rewrites
Then use straightforward evaluation
 
Originally implemented in MySQL 4.1by Sinisa (FROM subqueries) and Sanja (all other kinds)
 
Processing subqueries in the FROM clause
SELECT 
...
 FROM  (SELECT 
...
)  AStbl  WHERE 
...
Execution steps
1.Optimize the subquery SELECT2.Execute it and capture result into a temporary table3.Optimize and execute the parent SELECT
Properties
No optimization (can get some if you define/use a VIEW equivalentto subquery)
EXPLAIN command runs the subquery and thus can be very slow

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)//-->