Bug #21300 Index hints for update statements
| Submitted: | 26 Jul 2006 15:44 | Modified: | 29 Oct 2019 21:15 |
|---|---|---|---|
| Reporter: | Andre Timmer | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | MySQL Server: DML | Severity: | S4 (Feature request) |
| Version: | 5.0.18 | OS: | Any |
| Assigned to: | CPU Architecture: | Any |
[26 Jul 2006 15:44]
Andre Timmer
[26 Jul 2006 15:52]
Valeriy Kravchuk
Thank you for a reasonable feature requests.
[26 Jul 2006 16:04]
Harrison Fisk
It is possible to use straight_join between individual tables, just not for the entire query. So there are work arounds. You can also hint indexes with USE/FORCE/IGNORE INDEX, like in normal statements. The following works: UPDATE t1 straight_join t2 set t1.id=t2.id WHERE t1.id=t2.id; This doesn't: UPDATE straight_join t1, t2 set t1.id=t2.id WHERE t1.id=t2.id;
[26 Jul 2006 16:16]
Andre Timmer
Our update is back in minutes instead of more than 3 hours. Thanks a lot :-) Found the documentation, although this option is easy.
[29 Oct 2019 21:15]
Roy Lyseng
Posted by developer: UPDATE and DELETE statements fully support hints in 8.0 and later, see e.g WL#9158.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.054 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
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.