Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Class notes

Database

Rating
-
Sold
-
Pages
7
Uploaded on
17-03-2025
Written in
2024/2025

Indexing in a database is a technique used to improve the speed of data retrieval by allowing the database to locate specific records quickly without scanning the entire table. Similar to an index in a book, a database index provides a structured way to find information efficiently. There are different types of indexing, each serving a unique purpose. A **primary index (clustered index)** organizes data physically based on a key, ensuring fast access to sorted records. A **secondary index (non-clustered index)** stores pointers to data locations, allowing multiple indexes on a table without altering the physical order. **Unique indexes** prevent duplicate values, ensuring data integrity, while **composite indexes** improve searches that involve multiple columns. For large text-based searches, **full-text indexing** enhances performance in content-heavy databases. Despite its advantages, indexing has some drawbacks, such as increased storage requirements and slower insert, update, or delete operations due to constant index updates. However, when implemented effectively, indexing significantly enhances query execution speed, making it an essential component of database optimization.

Show more Read less
Institution
Course

Content preview

Week 4
Database Administration
IT-404
Indexing in Databases
Indexing improves database performance by minimizing the number of disc visits required to
fulfill a query. It is a data structure technique used to locate and quickly access data in
databases. Several database fields are used to generate indexes. The main key or candidate
key of the table is duplicated in the first column, which is the Search key. To speed up data
retrieval, the values are also kept in sorted order. It should be highlighted that sorting the
data is not required. The second column is the Data Reference or Pointer which contains a
set of pointers holding the address of the disk block where that particular key value can be
found.




Structure of Index in Database



Attributes of Indexing
Access Types: This refers to the type of access such as value-based search, range access, etc.

Access Time: It refers to the time needed to find a particular data element or set of
elements.

Insertion Time: It refers to the time taken to find the appropriate space and insert new data.

, Deletion Time: Time taken to find an item and delete it as well as update the index
structure.

Space Overhead: It refers to the additional space required by the index.




Structure of Index in Database

In general, there are two types of file organization mechanisms that are followed by the
indexing methods to store the data:

Sequential File Organization or Ordered Index File
In this, the indices are based on a sorted ordering of the values. These are generally fast and
a more traditional type of storing mechanism. These Ordered or Sequential file organizations
might store the data in a dense or sparse format.

Dense Index

 For every search key value in the data file, there is an index record.
 This record contains the search key and also a reference to the first data record with
that search key value.

Written for

Institution
Course

Document information

Uploaded on
March 17, 2025
Number of pages
7
Written in
2024/2025
Type
Class notes
Professor(s)
Johra
Contains
Bachelor\\\'s

Subjects

$11.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
kaifraj407

Get to know the seller

Seller avatar
kaifraj407 Rawalpindi women university
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
1 year
Number of followers
0
Documents
2
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions