Home » Other » Community Hangout » make_query_fast hint
( ) 1 Vote
make_query_fast hint [message #652661] |
Wed, 15 June 2016 15:16  |
 |
Barbara Boehmer
Messages: 9105 Registered: November 2002 Location: California, USA
|
Senior Member |
|
|
This wasn't on our forums, but I just had to share. I am used to people comically suggesting the make_query_fast hint and such, but I don't think I have ever seen anybody not realize that it was a joke and actually test it and post the results.
https://community.oracle.com/thread/3940746
Then it continues to get better. No index. Still no query or explain plant posted. Waiting to see what happens next.
[Updated on: Wed, 15 June 2016 15:18] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
Re: make_query_fast hint [message #658974 is a reply to message #658621] |
Tue, 03 January 2017 02:51  |
Roachcoach
Messages: 1576 Registered: May 2010 Location: UK
|
Senior Member |
|
|
The other reason this sometimes works is when there's a series of legacy and now outdated hints in the code, someone slaps an invalid one at the start, takes out all the ones after it by accident and voilla, magically it is better because the old hints are now not applied.
SQL> explain plan for select /*+ full(t) */ count(*) from system.t t
2 /
Explained.
SQL> select * from table(dbms_xplan.display());
PLAN_TABLE_OUTPUT
--------------------------------------------------------------------------------
Plan hash value: 2966233522
-------------------------------------------------------------------
| Id | Operation | Name | Rows | Cost (%CPU)| Time |
-------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 1 | 148 (0)| 00:00:01 |
| 1 | SORT AGGREGATE | | 1 | | |
| 2 | TABLE ACCESS FULL| T | 33984 | 148 (0)| 00:00:01 |
-------------------------------------------------------------------
9 rows selected.
SQL> explain plan for select /*+ GOD_PLEASE_GO_FASTER() full(t) */ count(*) from system.t t
2 /
Explained.
SQL> select * from table(dbms_xplan.display());
PLAN_TABLE_OUTPUT
--------------------------------------------------------------------------------
Plan hash value: 325870156
----------------------------------------------------------------------
| Id | Operation | Name | Rows | Cost (%CPU)| Time |
----------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 1 | 22 (0)| 00:00:01 |
| 1 | SORT AGGREGATE | | 1 | | |
| 2 | INDEX FAST FULL SCAN| IDX1 | 33984 | 22 (0)| 00:00:01 |
----------------------------------------------------------------------
9 rows selected.
SQL>
[Updated on: Tue, 03 January 2017 02:56] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Sat May 31 15:48:53 CDT 2025
|