![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I'm seeing differences in performance for the same SQL being executed on two slightly different databases. Using Set Explain, the difference is when database1 exectues part of the WHERE, it goes down the Index Path for that particular table and it's fast. On database2, the query plan does a Sequenial Scan of that particular table instead of the Index Path. This is IDS 9.4. |
#3
| |||
| |||
|
|
NCC1701... (AT) gmail (DOT) com wrote: I'm seeing differences in performance for the same SQL being executed on two slightly different databases. Using Set Explain, the difference is when database1 exectues part of the WHERE, it goes down the Index Path for that particular table and it's fast. On database2, the query plan does a Sequenial Scan of that particular table instead of the Index Path. This is IDS 9.4. When and how have you run update statistics on either database? -- Clive |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
On Jun 15, 8:50 am, Clive Eisen <c... (AT) serendipita (DOT) com> wrote: NCC1701... (AT) gmail (DOT) com wrote: I'm seeing differences in performance for the same SQL being executed on two slightly different databases. Using Set Explain, the difference is when database1 exectues part of the WHERE, it goes down the Index Path for that particular table and it's fast. On database2, the query plan does a Sequenial Scan of that particular table instead of the Index Path. This is IDS 9.4. When and how have you run update statistics on either database? I'm not sure what you mean by "how", it was run yesterday. I'm a developer and our DBA is assisting in this and he ran the update statistics through SQL Editor. |
#6
| |||
| |||
|
|
NCC1701... (AT) gmail (DOT) com said: On Jun 15, 8:50 am, Clive Eisen <c... (AT) serendipita (DOT) com> wrote: NCC1701... (AT) gmail (DOT) com wrote: I'm seeing differences in performance for the same SQL being executed on two slightly different databases. Using Set Explain, the difference is when database1 exectues part of the WHERE, it goes down the Index Path for that particular table and it's fast. On database2, the query plan does a Sequenial Scan of that particular table instead of the Index Path. This is IDS 9.4. When and how have you run update statistics on either database? I'm not sure what you mean by "how", it was run yesterday. I'm a developer and our DBA is assisting in this and he ran the update statistics through SQL Editor. I think he means "which type of statistics did he get: high, medium or low? -- Bye now, Obnoxio "I'm astonished anyone pays real money for this crap." -- Cosmo -- This message has been scanned for viruses and dangerous content by OpenProtect(http://www.openprotect.com), and is believed to be clean. |
#7
| |||
| |||
|
|
NCC1701... (AT) gmail (DOT) com said: On Jun 15, 8:50 am, Clive Eisen <c... (AT) serendipita (DOT) com> wrote: NCC1701... (AT) gmail (DOT) com wrote: I'm seeing differences in performance for the same SQL being executed on two slightly different databases. Using Set Explain, the difference is when database1 exectues part of the WHERE, it goes down the Index Path for that particular table and it's fast. On database2, the query plan does a Sequenial Scan of that particular table instead of the Index Path. This is IDS 9.4. When and how have you run update statistics on either database? I'm not sure what you mean by "how", it was run yesterday. I'm a developer and our DBA is assisting in this and he ran the update statistics through SQL Editor. I think he means "which type of statistics did he get: high, medium or low? -- Bye now, Obnoxio "I'm astonished anyone pays real money for this crap." -- Cosmo -- This message has been scanned for viruses and dangerous content by OpenProtect(http://www.openprotect.com), and is believed to be clean. |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |