alpmoon has already given you 95% of the advice I was going to. All I can add is to ask exactly which version of ASE 15 you have - things have moved a lot between 15.0, 15.0.1, 15.0.2 and 15.0.3. The exact patch release can be very significant.
Note that many of the "set" options changed in ASE 15.0.x. There's also a new one that's helpful in these cases, show_missing_stats which highlights where the optimiser didn't have good stats for something.
It's also well worth checking the "opt-goal", particularly if your query in ASE 12.5.x was executed in parallel. Many sites are finding that with the right settings, a serial query in 15 is faster than a parallel query in 12.5... but a parallel query in 15 might be slower in some circumstances.
Main Topics
Browse All Topics





by: alpmoonPosted on 2009-09-15 at 17:21:26ID: 25340810
Apparently, you have a different query plan at ASE 15.0. Usually it happens if you miss table statistics. It is strongly suggested that you should run 'update index statistics' after 15 upgrade. Have you done it on all tables involved?
If not, try it first. Also you can check and compare query plans by using 'set showplan on' command in both versions. You can also see query plans in 15 by running the query through Interactive sql. If you provide query plans, we can give more feedback.