Overfetching
Overfetching occurs when a data retrieval operation returns more data than is actually needed by the consumer. It is a common issue in APIs, web services, databases, and client-server applications, where payloads include fields, records, or relations that the caller will not use.
Causes include selecting broad data shapes (for example, using SELECT * in SQL), returning entire resource representations
Impacts of overfetching include higher bandwidth usage, increased latency, extra processing time on servers and clients,
Mitigation strategies include using sparse fieldsets or field filtering in APIs, designing endpoints to return only
Overfetching is often contrasted with underfetching, where too little data requires additional requests. Balancing both concerns