23bce385 DBMS PR 8 Final
23bce385 DBMS PR 8 Final
Practical :- 8
Aim :- Indexing, View, and Performance Analysis ,Comparing Query
Execution Time with and without Indexes and Views
1. Environment Setup
Execution Plan Analysis: Use EXPLAIN PLAN FOR before each query and retrieve the plan
using:
7. Drop a View
DROP VIEW BCE_Students;
DROP VIEW DBMS_Students;
DROP VIEW Highest_Marks_Per_Course;
Performance Comparison
1. Without Indexes:
o Queries took longer execution time due to full table scans.
o EXPLAIN PLAN showed sequential scans instead of index usage.
2. With Indexes:
o Execution time reduced significantly.
o EXPLAIN PLAN indicated index-based access, reducing scan time.
3. Using Views:
o Simplified query logic and improved readability.
o Performance impact varied based on view complexity.
Conclusion