Re: Problems with system locking
Hi Brian,
Brian O'Donnell wrote:
...
> I guess MySQL will go and examine all the
> underlying tables for each query?
>
> We were thinking that if we set the MERGE table to
> use the first table
...
> However I'm not sure this will
> make any difference as it probably has to go to
> the other tables to ensure the data isn't in them
> - unless it builds a separate index?
MERGE cannot make any assumptions about the contents of the tables. It has to scan all indexes.
But you can create multiple MERGE tables. Create one for the last two tables, one for the last three, and so on, whatever you need.
Regards
Ingo Strüwing, Senior Software Developer - Storage Engines
MySQL AB, www.mysql.com
Subject
Views
Written By
Posted
9950
April 26, 2006 05:37AM
10086
April 27, 2006 04:36AM
4040
April 27, 2006 07:41AM
3444
May 02, 2006 06:13AM
3461
May 02, 2006 07:49AM
3081
May 02, 2006 10:46AM
2874
May 12, 2006 04:10AM
Re: Problems with system locking
2991
May 15, 2006 02:57AM
3071
April 28, 2006 03:23AM
2746
May 02, 2006 06:27AM
4220
June 13, 2006 09:59PM
2800
June 14, 2006 08:04AM
3080
June 14, 2006 10:22AM
2842
June 15, 2006 09:26AM
3304
June 15, 2006 11:18AM
3097
June 16, 2006 03:18AM
3203
July 14, 2006 03:52PM
3089
July 31, 2006 04:16AM
3051
August 22, 2006 11:34AM
3051
July 19, 2006 04:07AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.