Skip to content

Rmuk655/Query-Optimization-and-Performance-Analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Query Optimization and Performance Analysis

This repository contains the practical implementation and analysis of query optimization, indexing, and performance evaluation using PostgreSQL.


Overview

The project explores how database systems efficiently execute queries using query optimization techniques and indexing strategies. Through this, I analyzed and improved query performance using real-world datasets and execution plans.


Repository Structure

Query-Optimization-and-Performance-Analysis/ ├── Assignment1/ │ ├── task1/ │ ├── task2/ │ └── task3/ ├── Assignment2/ │ ├── task1/ │ ├── task2/ │ ├── task3/ │ └── task4/


Key Concepts Covered

  • SQL Query Optimization (EXPLAIN ANALYZE)
  • Indexing Techniques (B-Tree, index scans)
  • Query Execution Plans (sequential vs index scan)
  • Performance Analysis (runtime comparison)
  • Database Internals (cost models, cardinality)

Technologies Used

  • PostgreSQL
  • SQL
  • Python
  • JSON

Highlights

  • Analyzed query performance before and after indexing
  • Demonstrated improvements using optimized queries
  • Explored execution plans and optimizer decisions
  • Conducted experiments on datasets

Key Learnings

  • Execution plans matter more than just SQL syntax
  • Indexes improve performance but must be used carefully
  • Optimizers rely on cost estimation and statistics
  • Understanding scans and joins is critical

Future Improvements

  • Add benchmarking scripts
  • Improve visualization of query plans
  • Extend to distributed databases

Author

Krishnan R
B.Tech CSE, IIT Hyderabad

About

PostgreSQL query optimization and performance analysis using indexing, execution plans, and cost-based evaluation techniques.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors