EXPLAIN examples (cont)
Check your prediction using the EXPLAIN ANALYZE command.
- select max(birthday) from People
- select max(id) from People
- select family from People order by family
- select s.family from People s, CourseEnrolments e
where s.id=e.student and e.grade='FL'
- select * from EnrolmentCounts where code='COMP9315';
Examine the effect of adding ORDER BY and DISTINCT .
Add indexes to improve the speed of slow queries.
|