Avoid SQL queries that no index can support (ABAP) | CAST Appmarq

Avoid SQL queries that no index can support (ABAP)

CRITICAL

Rule Definition
Indexes speed up data selection from the database. They consist of selected columns of a table, of which a copy is then made in sorted order. If you specify the index columns correctly in a condition in the WHERE or HAVING clause, the system only searches part of the index (index range scan). A query that is not based on indexed columns will lead to a full table scan that is extremely time consuming.

Remediation
Try to use indexed columns in WHERE and HAVING clauses. If it is not possible, then create a secondary index for these columns.

Reference
Enhancing the Quality of ABAP Development Meijs - Krouwels - Heuvelmans - Sommen SAP Press ISBN 1-59229-030-2

Related Technologies

Health Factor

  Efficiency


Technical Criterion
Efficiency - SQL and Data Handling Performance

About CAST Appmarq

CAST Appmarq is by far the biggest repository of data about real IT systems. It's built on thousands of analyzed applications, made of 35 different technologies, by over 300 business organizations across major verticals. It provides IT Leaders with factual key analytics to let them know if their applications are on track.

Benchmark Statistics

Global Compliance

92.95%

Total Violations
492
Total Opportunities
6,982
Average Violations / App.
246.00
The compliance score represents 1 minus the ratio between the number of times a rule has been violated compared to the number of opportunities in a set of applications that the rule could have been violated.

Industry Insights

Government

93.06%