List:General Discussion« Previous MessageNext Message »
From:Gleb Paharenko Date:July 18 2005 8:51am
Subject:Re: Performance difference? : [SELECT ON Merge TableAB] vs [(SELECT ON Table A) UNION (SELECT ON TABLE B) ]
View as plain text  
Hello.


I've searched in the archives at:
  http://lists.mysql.com/mysql

but the only thing I've found is that the speed difference is rather low. In my opinion,
using UNION is a more flexible solution.




pow <powster@stripped> wrote:
> Hi everyone,
> Take for example two identical tables A & B, and a MERGE table merging 
> both of them.
> Would there be any performance advantage if  I do a select (with a where 
> criteria on an indexed column) on the MERGE table, as opposed to doing a 
> union of two selects with the same WHERE criteria?
> 
> Many Thanks!
> 


-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.NET http://www.ensita.net/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Gleb Paharenko
 / /|_/ / // /\ \/ /_/ / /__   Gleb.Paharenko@stripped
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.NET
       <___/   www.mysql.com



Thread
Switching legacy tables from 4.0 to 4.1 -AND- from default to UTF-8 .... ADVICE ANYONE?Miles Keaton15 Jul
  • Re: Switching legacy tables from 4.0 to 4.1 -AND- from default to UTF-8 .... ADVICE ANYONE?Gleb Paharenko15 Jul
Re: Switching legacy tables from 4.0 to 4.1 -AND- from default to UTF-8 .... ADVICE ANYONE?Bruce Dembecki15 Jul
  • Re: Switching legacy tables from 4.0 to 4.1 -AND- from default to UTF-8 .... ADVICE ANYONE?Miles Keaton16 Jul
Re: Switching legacy tables from 4.0 to 4.1 -AND- from default to UTF-8 .... ADVICE ANYONE?Bruce Dembecki17 Jul
Re: Switching legacy tables from 4.0 to 4.1 -AND- from default to UTF-8 .... ADVICE ANYONE?Bruce Dembecki17 Jul
  • Performance difference? : [SELECT ON Merge TableAB] vs [(SELECT ONTable A) UNION (SELECT ON TABLE B) ]pow17 Jul
    • Re: Performance difference? : [SELECT ON Merge TableAB] vs [(SELECT ON Table A) UNION (SELECT ON TABLE B) ]Gleb Paharenko18 Jul