DataBase 2- (CSEN 604), spring 2022
The theme of the project is working on postgreSql DBMS and understand the concept of query optmization .
PgAdmin - Psql shell - java - latex
- Learn how to read the execution plan of a certain query
- Leran how to inspect the queries and find the columns needed to be indexed .
- Learn how to optmized queries' performance .
- understand how PostgreSql works
- Learn ro deal with pg admin
First we started the project by running the script that creates the four schemas that will work on them .
then we modified the insertion in java that is connected to our postgresql DBengine to make a number of rows sufficient for each query that will help the planner to make a good estimate about how the exection plan will look like
Then we update the statistics needed to be collected to enhance the performance using theese commands on each schema ANALZE
Create Statistics
Then we inspect the execution plan after running each query to find which column if we make index on it will improve the performance .
Then we tried to find an alternative query that will force the planner to ignore some of the inner subplans and hence speed the execution time and decrease performance .
Link to a deatailed report :