SAP Knowledge Base Article - Preview

2077161 - Query takes a long time to complete due to bad table scan when statement cache or literal autoparam is on -SAP ASE

Symptom

  • ASE query showplan shows that optimizer is choosing a table scan instead of more efficient index scan when statement cache and literal autoparam are on.
  • Optimizer chooses the more efficient index scan when literal autoparam is off
  • Query contains multiple copies of the same literal value


Read more...

Environment

  • SAP Adaptive Server Enterprise (ASE) 15.7
  • SAP Adaptive Server Enterprise (ASE) 16.0

Product

SAP Adaptive Server Enterprise 15.7 ; SAP Adaptive Server Enterprise 16.0 ; Sybase Adaptive Server Enterprise 15.5

Keywords

Adaptive Server Enterprise, performance, optimizer , KBA , BC-SYB-ASE , Sybase ASE Database Platform (non Business Suite) , Bug Filed

About this page

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

Search for additional results

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