MySQL Forums
Forum List  »  Optimizer & Parser

Is there any way to tell the optimizer that my large, but simple-schema table are already sorted?
Posted by: WeiQi Huang
Date: November 27, 2011 05:18AM

Is there any way(i mean something like index hints) to tell the optimizer that my large, but simple-schema table is already sorted?

So as to save my running-time and storage cost to create an full coverage index.


Use case:

Tables:
X(a int, b int, c int);
Y(a int, b int, c int);

then, i use a natural-join query to find out whether these two table are exactly same:

SELECT count(*) FROM X join Y using(a,b) WHERE X.c <> Y.c;

Options: ReplyQuote


Subject
Views
Written By
Posted
Is there any way to tell the optimizer that my large, but simple-schema table are already sorted?
1825
November 27, 2011 05:18AM


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.