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

Avoid SQL queries on XXL tables that no index can support (ABAP)

CRITICAL

Rule Definition
SQL Queries that do not use table indexes are extremely dangerous for the application's performance. Indeed, each execution of the query will result in a full table scan which is extremely time consuming especially if the table contains an extremely large amount of data (XXL table).

Remediation
Try to use indexed columns in WHERE 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

  Total Quality Index


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

91.64%

Total Violations
1,411
Total Opportunities
16,873
Average Violations / App.
201.57
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

Manufacturing

90.37%

Retail

90.71%

IT & Business Consulting

98.81%