on 01-03-2022 8:01 PM
optdiag-155trz-usuario-actividad.txt
optdiag-trz-usuario-actividad.txt
Hi community,
First of all, happy new year to all of you.
We have noticed an unusual behaviour after migrating ASE from 15.7 to ASE16.
If we run the statement above , it is executed in 0.056 seconds.
If we run the statement above with an orderby desc, it is excecuted in 29.706 seconds.
If we run the statement above with an orderby asc, it is executed in 19.642 seconds.
The table1 has 32'848.731 rows, we have a clustered index by sop and usuario_actividad is it's primary key.
The derived stats of the table and indexes are correct.
If we replicate the same situation under an ASE15.7 or 15.5 instance, the execution time for the order by is less than 1 second.
Has anyone of you faced something like this?
Kind regards,
Cristian Lopez,
A quick look through the optdiags doesn't show any glaring issues:
First guess would be a bad cached statement but from the query plans it doesn't look like you're using statement cache.
I'd be curious what the query plan looks like if you were to disable the backward scan of the pk_trz_usuario_actividad index (sp_configure 'allow backward scans',0) and then re-run the order by/desc query.
'fraid I'm not coming up with anything else at the moment; the few clients I've worked with that have gone to ASE 16 haven't seen this behavior (or they haven't mentioned it to me); then again they're all several releases behind you (16.0 SP03 PL10) so can't tell if this might be a regression issue with the newer release(s).
If you've got a support contract and you haven't already done it, I'd go ahead and open a ticket. [If support comes back with a confirmed issue and/or solution, and you've got the time, could you update this thread with the results?]
Regards,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
try following the next SAP notes and blog:
https://blogs.sap.com/2020/12/11/whats-new-in-sap-ase-16.0-sp04/ (Workload Analyzer Command Line Utility (WLACLIUtil)
https://blogs.sap.com/tag/ase16/
https://launchpad.support.sap.com/#/notes/3115940
https://launchpad.support.sap.com/#/notes/1581695
https://launchpad.support.sap.com/#/notes/2162183
Also, apply the latest CR
Best regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Diego,
Thanks for your resonse. I will have a look into those documents.
Kind Regards,
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.