Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MySQL (use | force | ignore) index support #1385

Closed
bazilio91 opened this issue Sep 12, 2012 · 2 comments
Closed

MySQL (use | force | ignore) index support #1385

bazilio91 opened this issue Sep 12, 2012 · 2 comments

Comments

@bazilio91
Copy link

force index works only with hack:

$criteria = new CDbCriteria();
$criteria->join = " force index (`super-custom-index`) ";

but with constructions like this:

SELECT * FROM t
  USE INDEX (index1)
  IGNORE INDEX (index1) FOR ORDER BY

its useless. it looks hard to optimize selects from huge tables without index functional

some links:

http://www.yiiframework.com/forum/index.php?/topic/12545-how-do-i-perform-this-sql-search
http://www.mysqlperformanceblog.com/2007/01/31/getting-mysql-to-use-full-key-length/

@DaSourcerer
Copy link
Contributor

👍

@samdark
Copy link
Member

samdark commented Nov 9, 2016

Won't be implemented since 1.1 is reaching EOL and new features aren't accepted.

@samdark samdark closed this as completed Nov 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants