Machine-translated by Google. Questions are authored in English.
Top

Discussion

Which of the following is true about "indexing" in databases ?

  • A.Indexing improves the speed of data retrieval.
  • B.Indexing reduces the storage requirements of a database.
  • C.Indexing increases the complexity of queries.
  • D.Indexing prevents SQL injection attacks.

Answer: A

The true statement is Indexing improves the speed of data retrieval.

An index, usually a B-tree, lets the database find rows matching a condition without scanning the whole table, much as a book's index saves reading every page.

Indexes take extra storage and slow down inserts and updates, so they do not reduce storage. They do not make queries more complex, and they do nothing to stop SQL injection, which needs parameterised queries.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.