By the end of this chapter, you will be able to:
Mastering these skills helps keep databases running smoothly and efficiently, which is essential for any organization relying on reliable data.
Type: Individual
| Tools & Equipment | Materials |
|---|---|
| Relational Database Management System (MySQL 8.0) | |
| Database Client Software (MySQL Workbench) | |
| Laptop or Desktop Computer |
| S/N | Item | Quantity |
|---|---|---|
| 1 | Relational Database Management System (MySQL 8.0) | 1 instance per Candidate |
| 2 | Database Client Software (MySQL Workbench) | 1 instance per Candidate |
| 3 | Laptop or Desktop Computer | 1 per Candidate |
| Items to be Evaluated | Marks Available | Marks Obtained | Comments |
|---|---|---|---|
| TASK 1: Database Optimization Process | |||
| Verified the existing database structure and identified performance bottlenecks (Award 1 mark for identifying slow queries, 1 mark for analyzing indexes, 1 mark for recognizing missing keys) | 3 | ||
| Created appropriate indexes on frequently queried columns (Award 1 mark each for creating at least 5 effective indexes) | 5 | ||
| Updated database statistics to aid query optimizer (Award 1 mark for running ANALYZE TABLE or equivalent, 1 mark for verifying statistics update) | 2 | ||
| Optimized slow queries using EXPLAIN plans and rewrote queries where necessary (Award 1 mark for using EXPLAIN, 1 mark for rewriting query, 1 mark for testing improved query, 2 marks for demonstrating improved performance) | 5 | ||
| Backed up the optimized database schema and data (Award 1 mark for performing backup, 1 mark for verifying backup integrity) | 2 | ||
| Sub-Total | 17 | ||
| PRODUCT CHECKLIST | |||
| Database performance improved as evidenced by reduced query execution times and properly implemented indexes (Award 2 marks for each of the four key improvements: indexes created, statistics updated, queries optimized, backup done) | 8 | ||
| Sub-Total | 8 | ||
| GRAND TOTAL | 25 | ||
Type: Individual
| Tools & Equipment | Materials |
|---|---|
| Relational Database Management System (MySQL Server 8.0 or higher) | Sample Student Performance Database Script |
| SQL Query Editor (MySQL Workbench or equivalent) |
| S/N | Item | Quantity |
|---|---|---|
| 1 | Relational Database Management System (MySQL Server 8.0 or higher) | 1 Instance per Candidate |
| 2 | SQL Query Editor (MySQL Workbench or equivalent) | 1 Instance per Candidate |
| 3 | Sample Student Performance Database Script | 1 Copy per Candidate |
| Items to be Evaluated | Marks Available | Marks Obtained | Comments |
|---|---|---|---|
| TASK 1: Apply Indexes for Query Optimization | |||
| Identified slow-running queries using EXPLAIN plan (Award 2 marks for accurate use of EXPLAIN to identify bottlenecks) | 2 | ||
| Created appropriate indexes on columns used in WHERE and JOIN clauses (Award 1 mark each for creating indexes on at least four relevant columns) | 4 | ||
| Tested queries after indexing to confirm performance improvement (Award 2 marks for demonstrating reduced query execution time) | 2 | ||
| Sub-Total | 8 | ||
| TASK 2: Rewrite Queries for Efficient Execution | |||
| Rewrote inefficient queries using JOINs instead of subqueries (Award 1 mark for each query rewritten correctly) | 3 | ||
| Used WHERE clauses effectively to filter data early (Award 2 marks for correct use of WHERE filtering) | 2 | ||
| Avoided SELECT * and specified necessary columns only (Award 2 marks for optimized SELECT statements) | 2 | ||
| Sub-Total | 7 | ||
| TASK 3: Create and Use Views for Simplified Querying | |||
| Created a view named 'student_performance_summary' joining relevant tables (Award 3 marks for correct CREATE VIEW syntax and logic) | 3 | ||
| Queried the view to retrieve performance data for a specific student (Award 2 marks for correct SELECT query using the view) | 2 | ||
| Sub-Total | 5 | ||
| PRODUCT CHECKLIST | |||
| Indexes created on specified columns with correct syntax and effective in improving query speed (Award 5 marks for correct and effective indexing) | 5 | ||
| Optimized queries execute correctly and return expected results with improved performance (Award 5 marks for correctness and improved efficiency) | 5 | ||
| View 'student_performance_summary' correctly created and returns accurate consolidated data (Award 5 marks for correct view creation and usage) | 5 | ||
| Sub-Total | 15 | ||
| GRAND TOTAL | 35 | ||
At the start of this chapter we promised you would be able to:
Tick each one you can genuinely do.
So, are you there yet?
You're competent when you can confidently do 50% or more of what this chapter promised.
Sign in to record how you're doing.