SAP Knowledge Base Article - Preview

3347405 - Query Plans are different for same SQL from different connections - SAP ASE

Symptom

  • In ASE when application is running SQL it is going for table scan.
  • But if we run the same SQL it is picking up index scan. 
  • This had been working, and all the sudden, the application is doing a table scan when executed, with dynamic sql. 
  • The only known change is that many mass inserts/deletes happen for refreshing data.


Read more...

Environment

SAP Adaptive Server Enterprise (ASE)

Product

SAP Adaptive Server Enterprise all versions

Keywords


query plan, SQL query, table scan, index scan, dynamic SQL, mass inserts, mass deletes, data refresh, fragmented index, database performance, query optimization, drop index, create index, optdiags, database statistics , KBA , BC-SYB-ASE , Sybase ASE Database Platform (non Business Suite) , How To

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.