Effective prompting for query optimization
GreenGrid's daily energy report query has slowed from seconds to over 4 minutes as the sensor network grew past 10,000 panels. A developer asks AI to help by typing: "Make this query faster."
AI responds with generic advice: "Consider adding indexes, using LIMIT, and avoiding SELECT *."
The advice is technically valid but too generic to act on. The developer needs AI to identify the specific bottleneck in this query.
What change to the prompt would produce the most actionable optimization advice?
Cet exercice fait partie du cours
Advanced AI-Assisted Coding for Developers
Exercice interactif pratique
Passez de la théorie à la pratique avec l’un de nos exercices interactifs
Commencer l’exercice