Excessive Number of Inefficient Server-Side Data Accesses

Incomplete Base
Structure: Simple
Description

This weakness occurs when an application makes an excessive number of individual data queries to a server or database, instead of using more efficient methods like stored procedures or batch operations.

Extended Description

This pattern forces the server to process many small, inefficient requests, which consumes significant computational resources and slows down the entire application. The performance impact becomes more severe as user load increases, directly affecting scalability and user experience. While the exact threshold for "excessive" queries depends on context, the CISQ standard recommends limiting inefficient functions to a maximum of five data accesses. If an attacker can trigger these inefficient code paths, the performance degradation can be exploited to cause denial-of-service conditions or system instability.

Common Consequences 1
Scope: Other

Impact: Reduce Performance

References 1
Automated Source Code Performance Efficiency Measure (ASCPEM)
Object Management Group (OMG)
01-2016
ID: REF-959
Related Weaknesses
Taxonomy Mapping
  • OMG ASCPEM