The Importance of Highly Efficient SQL
To understand why performance is so important, consider the following scenarios.
You are performing post hoc analysis (that is, analysis after the fact or event). You have completed a study and collected a large dataset of individual observations of various factors or features. One such example is described within your ZoomZoom database, which analyzes the sales data for each customer.
With the data collection process, you want to analyze the data for patterns and insights as specified by your problem statement. If your dataset is sufficiently large, you could quickly encounter issues if you do not optimize the queries first; the most common issue would simply be the time taken to execute the queries. While this does not sound like a significant issue, unnecessarily long processing times can cause the following problems:
- Reduction in the depth of the completed analysis: As each query takes a long time, the practicalities of project...