Overview - Over-fetching and under-fetching problems
What is it?
Over-fetching and under-fetching are common problems when getting data from a server. Over-fetching means you get more data than you need, which wastes time and resources. Under-fetching means you get too little data, so you have to ask again to get more. These problems happen when the way you ask for data is not flexible enough.
Why it matters
Without solving these problems, apps can be slow or use too much internet data. Imagine a phone app that downloads a whole book when you only want one page (over-fetching), or only a few words and then has to ask for the rest repeatedly (under-fetching). This makes the app frustrating and inefficient. Fixing these problems makes apps faster and saves battery and data.
Where it fits
Before learning this, you should understand how APIs and data fetching work in general. After this, you can learn about GraphQL, which is a tool designed to solve these problems by letting you ask exactly for the data you want.