Database Compressed
Database Compressed
MEMBERS:
JANNATIMTIAZ F2022105205
HASEEB ASIF F2022105109
MALAIKA ZAHRA ALHUSSAINI
F2022105205
Index Structure
• An index speeds up data retrieval in a
database.
• Reduces the number of disk I/O
operations by allowing direct access
to rows.
• Helps in implementing constraints
like UNIQUE and PRIMARY KEY.
• An index creates a sorted version of a
column, allowing the database to
quickly locate rows without scanning
the entire table
PURPOSE
• Speeds up SELECT queries by reducing • Speeds up JOIN operations by providing
the time to locate data faster access to matching rows.
• Allows quick searches for specific rows • Helps implement PRIMARY KEY and UNIQUE
using indexed columns. constraints efficiently.
• Enhances performance of queries with • Minimizes the number of disk reads
ORDER BY and GROUP BY. required to fetch data.
INDEX STRUCTURE
• Holds pointers with the address of the disk block where the
specific key's value is located.
• Order Indices
• Primary Index
1. Dense index
2. Sparse index
• Clustering Index
• Secondary Index
Created based on the primary key of
PRIMARY INDEX
the table
• DENSE INDEX:
• A dense index has an index entry for every record in the table.
• SPARSE INDEX:
• A sparse index stores index entries only for some records,
reducing index size and improving efficiency
DENSE INDEX
• Use a search engine to find relevant results based on your query
• Choose multiple high-quality sources to ensure diverse and trustworthy information
• Retrieve the content from selected sources and analyze it for useful insights
• Write a response based on the analysis, citing sources for reference
SPRASE INDEX