PREMIUM
Join our WhatsApp Channel
Daily MCQs, Past Papers & Jobs for PPSC, FPSC, CSS
Daily MCQs • Past Papers • Jobs for PPSC, FPSC, CSS
Join Channel

What is the purpose of indexing in a database?

A. To reduce table size
B. To speedup data search
C. Both A & B
D. None of the above
Correct Answer: B. To speedup data search

Correct answer: To speedup data search. Indexing in a database speeds up data search.

Background: An index works like a book index, jumping straight to matching rows.

  • To reduce table size: An index adds structures, so it does not shrink the table.
  • Both A & B: Indexing speeds searching but does not shrink tables, so both is wrong.
  • None of the above: Indexing speeds searches, so this is wrong.

Did you know? Indexes speed reads but slow writes slightly.

Memory trick: Index = book index: find the page fast, not by reading the book.

0 comments

Leave a Reply

Join Our WhatsApp Channel ×