MySQL Forums
Forum List  »  MySQL Workbench

Re: Newbie Trying to Expedite Query
Posted by: Mike Lischke
Date: June 07, 2013 01:30AM

Well, yes, if you don't need any other part indexed and it fits otherwise then why not combining the auto inc field with the other two into a comming PK index? Since an index is ordered (you can even specify ascending or descending direction) you won't need an order by clause anymore.

Mike

Mike Lischke, MySQL Developer Tools
Oracle Corporation

MySQL Workbench on Github: https://github.com/mysql/mysql-workbench
On Twitter: https://twitter.com/MySQLWorkbench
On Slack: mysqlcommunity.slack.com (#workbench)
Report bugs to http://bugs.mysql.com
MySQL documentation can be found here: http://dev.mysql.com/doc/refman/8.0/en/

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Newbie Trying to Expedite Query
624
June 07, 2013 01:30AM


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.