![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
.... Although the result of the query always was correct whichever plan it's using. I repete - I did not do anything between queries, but just ran the same 'explain select ...' sequentially. The query itself is heavy, but pretty strightforward - 2 tables joined 12 times. |
#3
| |||
| |||
|
|
Attaching the dumps of the tables. And here is the query: select T1.MAIN_ID, T6.LEVEL_IND, T12.MAIN_ID from TMP_1 T1, TMP_2 T2, TMP_2 T3, TMP_2 T4, TMP_2 T5, TMP_3 T6, TMP_2 T7, TMP_2 T8, TMP_2 T9, TMP_2 T10, TMP_2 T11, TMP_1 T12 where T2.ID_2 = T1.MAIN_ID and T2.ID_TO_ID_TYPE = 201269 and 990765472621084681 = T2.ID_1 and T4.ID_1 = T12.MAIN_ID and T4.ID_TO_ID_TYPE = 201143 and T3.ID_TO_ID_TYPE = 201143 and 990765472621084681 = T3.ID_1 and T4.ID_2 = T3.ID_2 and T7.ID_1 = T12.MAIN_ID and T7.ID_TO_ID_TYPE = 201224 and T6.ID_TO_ID_TYPE = 201209 and T6.LEVEL_IND != 0 and T5.ID_TO_ID_TYPE = 201224 and 990765472621084681 = T5.ID_1 and T6.ID_1 = T5.ID_2 and T7.ID_2 = T6.ID_2 and T9.ID_1 = T12.MAIN_ID and T9.ID_TO_ID_TYPE = 201125 and T8.ID_TO_ID_TYPE = 201125 and 990765472621084681 = T8.ID_1 and T9.ID_2 = T8.ID_2 and T11.ID_1 = T12.MAIN_ID and T11.ID_TO_ID_TYPE = 201071 and T10.ID_TO_ID_TYPE = 201071 and 990765472621084681 = T10.ID_1 and T11.ID_2 = T10.ID_2 and T12.ID_TYPE = 301286 |
![]() |
| Thread Tools | |
| Display Modes | |
| |